Repository navigation
Commit b96ff08
committed
fix(DTitlebar): check screen boundary before showing menu
When window is at screen edge, the menu popup position anchored at
optionButton's bottom-left could overflow the screen boundary. Add
screen boundary checks before QMenu::exec() to reposition the menu
when it would exceed right, left, or bottom screen edges.
Fixes: bug-3124191 parent 8e8bcff commit b96ff08
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | | - | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1069 | 1083 | | |
1070 | 1084 | | |
1071 | 1085 | | |
| |||
0 commit comments