Change default implicitX for MaterialBrandSubMenu.

CURA-9522
This commit is contained in:
Joey de l'Arago 2023-01-02 10:21:43 +01:00
parent e99719a08f
commit bf30e69f08
2 changed files with 3 additions and 3 deletions

View File

@ -94,8 +94,6 @@ Cura.MenuItem
// We have to keep a count of itemHovered (instead of just a bool) // We have to keep a count of itemHovered (instead of just a bool)
property int itemHovered: 0 property int itemHovered: 0
implicitX: parent.width - UM.Theme.getSize("default_lining").width
MouseArea MouseArea
{ {
id: submenuArea id: submenuArea
@ -217,6 +215,8 @@ Cura.MenuItem
MaterialBrandSubMenu MaterialBrandSubMenu
{ {
id: colorPopup id: colorPopup
implicitX: parent.width
property int itemHovered: 0 property int itemHovered: 0
Column Column

View File

@ -19,7 +19,7 @@ Popup
implicitHeight: scrollViewContent.height + bottomPadding + topPadding implicitHeight: scrollViewContent.height + bottomPadding + topPadding
// offset position relative to the parent // offset position relative to the parent
property int implicitX: parent.width property int implicitX: parent.width - UM.Theme.getSize("default_lining").width
property int implicitY: -UM.Theme.getSize("thin_margin").height property int implicitY: -UM.Theme.getSize("thin_margin").height
default property alias contents: scrollViewContent.children default property alias contents: scrollViewContent.children