mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:55:54 +08:00
Merge pull request #14161 from Ultimaker/CURA-9522_material_list
[CURA-9522] Material list styled oddly
This commit is contained in:
commit
5c65ba5058
@ -215,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
|
||||||
@ -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 (globalPosition.x > mainWindow.width - materialBrandSubMenu.width)
|
||||||
{
|
{
|
||||||
if (mainWindow.width > materialBrandSubMenu.width)
|
if (mainWindow.width > materialBrandSubMenu.width)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user