mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix QML warning of 0 height from before table is filled
If there is no model data, the cells will be empty and would have a height of 0. The table warns us that a height of 0 is not allowed. Contributes to issue CURA-8686.
This commit is contained in:
parent
2429f28b7f
commit
39e29ae768
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ Item
|
|||
|
||||
delegate: Rectangle
|
||||
{
|
||||
implicitHeight: cellContent.height
|
||||
implicitHeight: Math.max(1, cellContent.height)
|
||||
|
||||
color: UM.Theme.getColor((tableScrollView.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue