Commit e1aecfe
app: clamp the flyout position to the monitor it is anchored on
The window's bottom-right was placed at the tray anchor with no bounds
check, so it landed at (-1136,-875) on a two-monitor desktop -- entirely
off both screens, while the tray still reported the app as open and the
only way back was Task Manager.
Any anchor near a top or left edge does it: the taskbar can be moved,
the icon may live in the overflow flyout, a secondary monitor can sit at
negative coordinates, and the window can be taller than the screen it is
anchored on. Clamp into the work area of the monitor under the anchor,
preferring the TOP-LEFT to stay visible when the window is larger than
that area, and log the anchor/size/result so an off-screen placement is
diagnosable from the log instead of from a missing window.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 0fb4402 commit e1aecfe
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
262 | | - | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
264 | 293 | | |
265 | 294 | | |
266 | 295 | | |
| |||
0 commit comments