Commit b5f2352
committed
Force a recompute of the monaco editor height
Monaco allocates height on initialization, and sets this as a fixed
height. By removing the height on a resize of the body, we force monaco
to recompute the value and claim all newly available space of the
flexbox layout.
Note that we use a resize observer instead of a `$(window).resize`, as
this will also trigger for other DOM changes and not just viewport
changes.1 parent 85854b2 commit b5f2352
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
0 commit comments