Ticket #7852: 7852.patch
File 7852.patch, 777 bytes (added by , 12 years ago) |
---|
-
_source/plugins/autogrow/plugin.js
39 39 max = editor.config.autoGrow_maxHeight; 40 40 41 41 ( min == undefined ) && ( editor.config.autoGrow_minHeight = min = 200 ); 42 43 // Manage visibility of the vertical scrollbar in order to: 44 // - avoid flickering 45 // - ensure that it is hidden when it's not necessary (#6967) 46 var overflowY = ( max && newHeight > max ) ? 'auto' : 'hidden'; 47 doc.getDocumentElement().setStyle( 'overflow-y', overflowY ); 48 42 49 if ( min ) 43 50 newHeight = Math.max( newHeight, min ); 44 51 if ( max )