File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 129129 if ( ! term . charMeasure . width ) {
130130 return ;
131131 }
132- var xtermViewport = document . getElementsByClassName ( "xterm-viewport" ) [ 0 ] ;
132+ var xtermViewport = element [ 0 ] . getElementsByClassName ( "xterm-viewport" ) [ 0 ] ;
133133 // character width * number of columns + space for a scrollbar
134134 // TODO determine the max width of a scrollbar across browsers
135135 xtermViewport . style . width = ( term . charMeasure . width * cols + 17 ) + "px" ;
Original file line number Diff line number Diff line change 129129 if ( ! term . charMeasure . width ) {
130130 return ;
131131 }
132- var xtermViewport = document . getElementsByClassName ( "xterm-viewport" ) [ 0 ] ;
132+ var xtermViewport = element [ 0 ] . getElementsByClassName ( "xterm-viewport" ) [ 0 ] ;
133133 // character width * number of columns + space for a scrollbar
134134 // TODO determine the max width of a scrollbar across browsers
135135 xtermViewport . style . width = ( term . charMeasure . width * cols + 17 ) + "px" ;
You can’t perform that action at this time.
0 commit comments