mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Fix cell height adjusting to content
To be honest, I'm not entirely sure why it only works here if I use implicitHeight instead of height. Contributes to issue CURA-8686.
This commit is contained in:
parent
bbb40d9b11
commit
88bf1995c0
1 changed files with 2 additions and 2 deletions
|
@ -107,14 +107,14 @@ Item
|
|||
|
||||
delegate: Rectangle
|
||||
{
|
||||
height: UM.Theme.getSize("section").height
|
||||
implicitHeight: cellContent.height
|
||||
|
||||
color: UM.Theme.getColor((tableScrollView.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background"))
|
||||
|
||||
Label
|
||||
{
|
||||
id: cellContent
|
||||
anchors.fill: parent
|
||||
width: parent.width
|
||||
|
||||
text: display
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue