File tree 3 files changed +4
-11
lines changed
3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 221
221
< div id ="main_col3 " class ="main_col ">
222
222
< div class ="main_col_opened ">
223
223
224
- < div class ="main_options " style =" height:85px " >
224
+ < div class ="main_options ">
225
225
226
226
227
227
< div class ="main_options_header "> Output</ div >
228
- < div class ="main_options_tools ">
229
- < button id ="clear_output " class ="btn btn-dark "> Clear</ button >
230
- </ div >
228
+ < div class ="main_options_tools "> <!-- Some buttons here --> </ div >
231
229
232
230
233
231
Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ class OutputView
20
20
21
21
this . currentText = "" ;
22
22
23
- document . getElementById ( "clear_output" ) . addEventListener ( "click" , function ( ) {
24
-
25
- this . clear ( ) ;
26
- } . bind ( this ) )
27
-
28
-
29
23
this . addLine ( ) ;
30
24
}
31
25
@@ -90,6 +84,7 @@ class OutputView
90
84
91
85
resetRuntimeOutput ( ) {
92
86
this . runtimeOutput = [ "" ] ;
87
+ this . clear ( ) ;
93
88
}
94
89
95
90
printLine ( text , type ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class WindowController
72
72
73
73
74
74
let mcc = mc . getElementsByClassName ( "main_options" ) [ 0 ] ;
75
- this . mainOptionsHeight . push ( parseInt ( mcc . style . height , 10 ) ) ;
75
+ this . mainOptionsHeight . push ( mcc . offsetHeight ) ;
76
76
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments