mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Fix poup rescaling the burgermenu weirdly
CURA-9007
This commit is contained in:
parent
ff824b718c
commit
7148ca5d06
1 changed files with 8 additions and 3 deletions
|
@ -130,8 +130,6 @@ Item
|
||||||
SettingVisibilityPresetsMenu
|
SettingVisibilityPresetsMenu
|
||||||
{
|
{
|
||||||
id: settingVisibilityPresetsMenu
|
id: settingVisibilityPresetsMenu
|
||||||
x: settingVisibilityMenu.x
|
|
||||||
y: settingVisibilityMenu.y
|
|
||||||
onCollapseAllCategories:
|
onCollapseAllCategories:
|
||||||
{
|
{
|
||||||
settingsSearchTimer.stop()
|
settingsSearchTimer.stop()
|
||||||
|
@ -154,12 +152,19 @@ Item
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
settingVisibilityPresetsMenu.popup(
|
settingVisibilityPresetsMenu.popup(
|
||||||
settingVisibilityMenu,
|
popupContainer,
|
||||||
-settingVisibilityPresetsMenu.width + UM.Theme.getSize("default_margin").width,
|
-settingVisibilityPresetsMenu.width + UM.Theme.getSize("default_margin").width,
|
||||||
settingVisibilityMenu.height
|
settingVisibilityMenu.height
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
// Work around to prevent the buttom from being rescaled if a popup is attached
|
||||||
|
id: popupContainer
|
||||||
|
anchors.bottom: settingVisibilityMenu.bottom
|
||||||
|
anchors.right: settingVisibilityMenu.right
|
||||||
|
}
|
||||||
|
|
||||||
// Mouse area that gathers the scroll events to not propagate it to the main view.
|
// Mouse area that gathers the scroll events to not propagate it to the main view.
|
||||||
MouseArea
|
MouseArea
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue