Commit 016b79b
fix(tray): use actual window width for popup placement clamp (v6.4.7)
position_window_near_tray hardcoded win_w = 360 * target_scale, but the
window is 400 logical px wide (since v6.3.20 widened the popup). The
clamp was 40 logical px short, so on Windows at 1.25x scale the popup
leaked 50 physical px past the right edge of the active monitor —
visibly spanning into the next display.
Read win_w from window.outer_size() like win_h already does. With this
fix, future width changes in tauri.conf.json stay in sync with the
placement math automatically.
Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>1 parent 2a06228 commit 016b79b
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
676 | 680 | | |
677 | 681 | | |
678 | 682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments