Cleanup unnecessary hard-coded numbers in styling

This commit is contained in:
Lipu Fei 2019-03-22 12:55:25 +01:00
parent 9e7c687853
commit 67428aee53

View File

@ -21,14 +21,14 @@ Item
id: base
implicitWidth: 200
height: header.contentShown ? (header.height + contentRectangle.height + 30) : header.height
implicitWidth: 200 * screenScaleFactor
height: header.contentShown ? (header.height + contentRectangle.height) : header.height
property var contentComponent: null
property alias contentItem: contentLoader.item
property alias title: header.title
property bool contentShown: false
property bool contentShown: false // indicates if this dropdown widget is expanded to show its content
signal clicked()
@ -59,7 +59,7 @@ Item
anchors.top: header.bottom
anchors.left: header.left
anchors.right: header.right
height: contentLoader.height + 2
height: contentLoader.height
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("lining")