Commit b867ad1
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 45b0817 commit b867ad1
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
0 commit comments