mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-07 22:18:30 -04:00
widgets: fix dropdown/icon picker referencing a dead window
port 1.5
This commit is contained in:
@@ -397,7 +397,7 @@ Item {
|
|||||||
|
|
||||||
Popup {
|
Popup {
|
||||||
id: saveMenu
|
id: saveMenu
|
||||||
parent: Overlay.overlay
|
parent: root.Overlay.overlay
|
||||||
padding: Theme.spacingM
|
padding: Theme.spacingM
|
||||||
modal: true
|
modal: true
|
||||||
dim: false
|
dim: false
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ Rectangle {
|
|||||||
|
|
||||||
Popup {
|
Popup {
|
||||||
id: categoryPopup
|
id: categoryPopup
|
||||||
parent: Overlay.overlay
|
parent: categoryChip.Overlay.overlay
|
||||||
width: Math.max(categoryChip.width, 180)
|
width: Math.max(categoryChip.width, 180)
|
||||||
padding: 0
|
padding: 0
|
||||||
modal: true
|
modal: true
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ Item {
|
|||||||
|
|
||||||
onClosed: root.menuOpen = false
|
onClosed: root.menuOpen = false
|
||||||
|
|
||||||
parent: Overlay.overlay
|
parent: root.Overlay.overlay
|
||||||
width: root.popupWidth === -1 ? undefined : (root.popupWidth > 0 ? root.popupWidth : (dropdown.width + root.popupWidthOffset))
|
width: root.popupWidth === -1 ? undefined : (root.popupWidth > 0 ? root.popupWidth : (dropdown.width + root.popupWidthOffset))
|
||||||
height: {
|
height: {
|
||||||
let h = root.enableFuzzySearch ? 54 : 0;
|
let h = root.enableFuzzySearch ? 54 : 0;
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ Rectangle {
|
|||||||
Popup {
|
Popup {
|
||||||
id: iconPopup
|
id: iconPopup
|
||||||
|
|
||||||
parent: Overlay.overlay
|
parent: root.Overlay.overlay
|
||||||
width: 320
|
width: 320
|
||||||
height: Math.min(500, dropdownContent.implicitHeight + 32)
|
height: Math.min(500, dropdownContent.implicitHeight + 32)
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user