Browse Source

Fix settings overlapping after collapse

I can't figure out why we ever set the min size to be negative, but
it was ocasonally making the layout stumble
Jaime van Kessel 5 years ago
parent
commit
bf57a61c48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/Settings/SettingView.qml

+ 1 - 1
resources/qml/Settings/SettingView.qml

@@ -251,7 +251,7 @@ Item
                 id: delegate
 
                 width: scrollView.width
-                height: provider.properties.enabled === "True" ? UM.Theme.getSize("section").height : - contents.spacing
+                height: provider.properties.enabled === "True" ? UM.Theme.getSize("section").height : 0
                 Behavior on height { NumberAnimation { duration: 100 } }
                 opacity: provider.properties.enabled === "True" ? 1 : 0
                 Behavior on opacity { NumberAnimation { duration: 100 } }