mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix foldout of the layerview panel being too short or too long
CURA-5829
This commit is contained in:
parent
2c59419dbb
commit
f15d03d48c
@ -19,7 +19,7 @@ Rectangle
|
||||
|
||||
width: UM.Theme.getSize("layerview_menu_size").width
|
||||
|
||||
height: viewSettings.collapsed ? layerViewTypesLabel.height + 2 * UM.Theme.getSize("default_margin").height : childrenRect.height
|
||||
height: viewSettings.collapsed ? layerViewTypesLabel.height + 2 * UM.Theme.getSize("default_margin").height : childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
|
||||
|
||||
Behavior on height { NumberAnimation { duration: 100 } }
|
||||
|
||||
@ -469,6 +469,13 @@ Rectangle
|
||||
}
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
// Another hack on top of the rotation of the gradient.
|
||||
// Since we set the side of the panel to use childrenRect (and that uses the un-rotated height), add this
|
||||
// wrapper item with the correct width & height so it doesn't get confused.
|
||||
width: parent.width
|
||||
height: feedrateGradient.visible || thicknessGradient.visible ? Math.round(UM.Theme.getSize("layerview_row").height * 1.5) : 0
|
||||
// Gradient colors for feedrate
|
||||
Rectangle
|
||||
{ // In QML 5.9 can be changed by LinearGradient
|
||||
@ -550,6 +557,7 @@ Rectangle
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FontMetrics
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user