fix splitbutton menu popout region for clicking outside panel bounds
This commit is contained in:
@@ -46,6 +46,21 @@ MouseArea {
|
||||
}
|
||||
|
||||
onClicked: expanded = false
|
||||
onExpandedChanged: {
|
||||
const win = QsWindow.window;
|
||||
const contentWin = win as Windows;
|
||||
if (expanded) {
|
||||
contentWin.menuRegion.x = menu.x;
|
||||
contentWin.menuRegion.y = menu.y;
|
||||
contentWin.menuRegion.width = menu.width;
|
||||
contentWin.menuRegion.height = menu.height;
|
||||
} else {
|
||||
contentWin.menuRegion.x = 0;
|
||||
contentWin.menuRegion.y = 0;
|
||||
contentWin.menuRegion.width = 0;
|
||||
contentWin.menuRegion.height = 0;
|
||||
}
|
||||
}
|
||||
|
||||
TransformWatcher {
|
||||
id: watcher
|
||||
|
||||
Reference in New Issue
Block a user