File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1633,9 +1633,16 @@ $(function () {
1633
1633
} else {
1634
1634
var editor = monaco . editor . create ( document . getElementById ( 'editorContainer' ) , {
1635
1635
language : 'python' ,
1636
- value : progData . source
1636
+ value : progData . source ,
1637
1637
} ) ;
1638
-
1638
+ editor . layout ( { width : window . innerWidth , height : window . innerHeight } )
1639
+
1640
+ window . onresize = ( ) => {
1641
+ var w = window . innerWidth ;
1642
+ var h = window . innerHeight ;
1643
+ editor . layout ( { width : w , height : h } ) ;
1644
+ } ;
1645
+
1639
1646
if ( isWritable ) {
1640
1647
var save = saver ( { user :username , folder :folder , program :program } ,
1641
1648
function ( ) { return editor . getValue ( ) } ,
@@ -1651,6 +1658,7 @@ $(function () {
1651
1658
}
1652
1659
) }
1653
1660
1661
+
1654
1662
function iframefix ( ) {
1655
1663
// When a mouse operation is started outside an iframe, cover all iframes on the page so
1656
1664
// that mousemove events don't get eaten by them. Supposedly jquery UI 1.9 will have this
@@ -1675,6 +1683,5 @@ $(function () {
1675
1683
} )
1676
1684
}
1677
1685
iframefix ( )
1678
-
1679
1686
window . onhashchange ( )
1680
1687
} )
You can’t perform that action at this time.
0 commit comments