mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:49:04 +08:00
Make layerview panel hug the bottom of small windows
Fixes https://github.com/Ultimaker/Cura/issues/2013
This commit is contained in:
parent
14fb01ee46
commit
29e152582f
@ -306,9 +306,12 @@ UM.MainWindow
|
|||||||
{
|
{
|
||||||
id: view_panel
|
id: view_panel
|
||||||
|
|
||||||
anchors.top: viewModeButton.bottom
|
property bool hugBottom: parent.height < viewModeButton.y + viewModeButton.height + height + UM.Theme.getSize("default_margin").height
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height;
|
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: hugBottom ? 0 : parent.height - (viewModeButton.y + viewModeButton.height + height + UM.Theme.getSize("default_margin").height)
|
||||||
anchors.left: viewModeButton.left;
|
anchors.left: viewModeButton.left;
|
||||||
|
anchors.leftMargin: hugBottom ? viewModeButton.width + UM.Theme.getSize("default_margin").width : 0
|
||||||
|
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user