mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 23:34:32 +08:00
Change default implicitX for MaterialBrandSubMenu.
CURA-9522
This commit is contained in:
parent
e99719a08f
commit
bf30e69f08
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user