File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
notebook/static/notebook/js Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ define([
98
98
return false ;
99
99
}
100
100
// line-height from http://stackoverflow.com/questions/1185151
101
- var fontSize = this . element . css ( 'font-size' ) ;
102
- var lineHeight = Math . floor ( parseInt ( fontSize . replace ( 'px' , '' ) ) * 1.5 ) ;
101
+ var fontSize = this . element . css ( 'font-size' ) || '14px' ;
102
+ var lineHeight = Math . floor ( ( parseFloat ( fontSize . replace ( 'px' , '' ) ) || 14 ) * 1.3 ) ;
103
103
return ( this . element . height ( ) > threshold * lineHeight ) ;
104
104
} ;
105
105
@@ -110,10 +110,6 @@ define([
110
110
this . prompt_overlay . click ( function ( ) { that . toggle_scroll ( ) ; } ) ;
111
111
112
112
this . element . resize ( function ( ) {
113
- // FIXME: Firefox on Linux misbehaves, so automatic scrolling is disabled
114
- if ( utils . browser [ 0 ] === "Firefox" ) {
115
- return ;
116
- }
117
113
// maybe scroll output,
118
114
// if it's grown large enough and hasn't already been scrolled.
119
115
if ( ! that . scrolled && that . _should_scroll ( ) ) {
You can’t perform that action at this time.
0 commit comments