Commit 19ba670
committed
fix: blank gap below status bar when plugin side panel opens in browser
When a plugin side panel (e.g. live preview) opens, the content area
narrows, causing the titlebar menubar items to wrap to multiple lines.
This transiently inflates the titlebar height (~35px → ~92px), and
multiple synchronous layout calculations run during this state, sizing
the editor too small. After the titlebar settles (~58px), a ~34px blank
gap remains below the status bar.
Add a ResizeObserver on the titlebar that detects height changes and
triggers a layout recomputation, correcting the editor size after the
titlebar wrapping settles.1 parent b190327 commit 19ba670
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
460 | 478 | | |
461 | 479 | | |
462 | 480 | | |
| |||
0 commit comments