mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-05 23:04:30 +08:00
Merge branch 'Ultimaker:main' into main
This commit is contained in:
commit
f2ce94c055
@ -215,6 +215,8 @@ Cura.MenuItem
|
||||
MaterialBrandSubMenu
|
||||
{
|
||||
id: colorPopup
|
||||
implicitX: parent.width
|
||||
|
||||
property int itemHovered: 0
|
||||
|
||||
Column
|
||||
|
@ -19,7 +19,7 @@ Popup
|
||||
implicitHeight: scrollViewContent.height + bottomPadding + topPadding
|
||||
|
||||
// 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
|
||||
|
||||
default property alias contents: scrollViewContent.children
|
||||
@ -67,6 +67,10 @@ Popup
|
||||
}
|
||||
}
|
||||
|
||||
// Changing the height causes implicitWidth to change because of the scrollbar appearing/disappearing
|
||||
// Reassign it here to update the value
|
||||
materialBrandSubMenu.width = implicitWidth;
|
||||
|
||||
if (globalPosition.x > mainWindow.width - materialBrandSubMenu.width)
|
||||
{
|
||||
if (mainWindow.width > materialBrandSubMenu.width)
|
||||
|
Loading…
x
Reference in New Issue
Block a user