Increase the padding with the button

Add more padding when the draggable area is visible
This commit is contained in:
Diego Prado Gesto 2019-01-16 08:47:01 +01:00
parent 2435b97ef7
commit 86b0ac320b

View File

@ -104,7 +104,7 @@ Item
{ {
id: buttonRow id: buttonRow
property real padding: UM.Theme.getSize("default_margin").width property real padding: UM.Theme.getSize("default_margin").width
height: recommendedButton.height + 2 * padding height: recommendedButton.height + 2 * padding + (draggableArea.visible ? draggableArea.height : 0)
anchors anchors
{ {
@ -144,6 +144,7 @@ Item
//Invisible area at the bottom with which you can resize the panel. //Invisible area at the bottom with which you can resize the panel.
MouseArea MouseArea
{ {
id: draggableArea
anchors anchors
{ {
left: parent.left left: parent.left