Tweak compatibility mode collapsed view panel

This commit is contained in:
fieldOfView 2017-11-20 20:32:45 +01:00
parent 532331bd44
commit b4b39f0949
2 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,9 @@ Item
}
height: {
if (viewSettings.collapsed) {
if (UM.SimulationView.compatibilityMode) {
return UM.Theme.getSize("layerview_menu_size_compatibility_collapsed").height;
}
return UM.Theme.getSize("layerview_menu_size_collapsed").height;
} else if (UM.SimulationView.compatibilityMode) {
return UM.Theme.getSize("layerview_menu_size_compatibility").height;
@ -535,8 +538,8 @@ Item
height: UM.Theme.getSize("layerview_menu_size").height
anchors {
top: playButton.bottom
topMargin: UM.Theme.getSize("default_margin").height
top: !UM.SimulationView.compatibilityMode ? playButton.bottom : parent.top
topMargin: !UM.SimulationView.compatibilityMode ? UM.Theme.getSize("default_margin").height : 0
right: parent.right
rightMargin: UM.Theme.getSize("slider_layerview_margin").width
}