Commit ef190ff
fix: anchor browser bookmark menu to cursor at all UI scales
Right-clicking a folder or location row was opening the Add/Remove
Bookmark popup at the raw screen coordinates passed via
withTargetScreenArea, ignoring the editor's AffineTransform::scale.
At UI scales above 1.0 the menu landed offset from the cursor.
Add withParentComponent (getTopLevelComponent()) to both menu
invocations so the popup is parented inside the transformed editor
and JUCE converts the screen target rect into the parent's scaled
coordinate space. Matches the existing convention used by the
HeaderBar settings menu.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 0cdb994 commit ef190ff
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| |||
609 | 610 | | |
610 | 611 | | |
611 | 612 | | |
| 613 | + | |
612 | 614 | | |
613 | 615 | | |
614 | 616 | | |
| |||
0 commit comments