mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:26:01 +08: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
@ -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…
x
Reference in New Issue
Block a user