Commit e7fb964
committed
Fix menu positioning for DPI-aware windows
Adjusts menu positioning logic to account for DPI scaling when positioning relative to a window. Uses logical pixels and applies the window's scale factor to ensure correct placement on high-DPI displays.1 parent 5407126 commit e7fb964
1 file changed
Lines changed: 14 additions & 3 deletions
File tree
- src/platform/windows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
709 | 711 | | |
710 | 712 | | |
711 | 713 | | |
712 | | - | |
713 | | - | |
714 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
715 | 726 | | |
716 | 727 | | |
717 | 728 | | |
| |||
0 commit comments