Add one pixel margin to the view selector.

This commit is contained in:
Diego Prado Gesto 2018-12-06 14:45:24 +01:00
parent 3ca749cdcb
commit 46c209a993
2 changed files with 4 additions and 2 deletions

View file

@ -74,6 +74,8 @@ Cura.ExpandableComponent
{
id: viewSelectorPopup
width: viewSelector.width - 2 * viewSelector.popupPadding
leftPadding: UM.Theme.getSize("default_lining").width
rightPadding: UM.Theme.getSize("default_lining").width
// For some reason the height/width of the column gets set to 0 if this is not set...
Component.onCompleted:
@ -91,7 +93,7 @@ Cura.ExpandableComponent
{
id: viewsSelectorButton
text: model.name
width: parent.width
width: parent.width - viewSelectorPopup.leftPadding - viewSelectorPopup.rightPadding
height: UM.Theme.getSize("action_button").height
leftPadding: UM.Theme.getSize("default_margin").width
rightPadding: UM.Theme.getSize("default_margin").width