Ticket #6967: 6967.patch

File 6967.patch, 705 bytes (added by typeof, 13 years ago)
  • plugin.js

     
    3939                                                max = editor.config.autoGrow_maxHeight;
    4040
    4141                                        ( 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                                       
    4249                                        if ( min )
    4350                                                newHeight = Math.max( newHeight, min );
    4451                                        if ( max )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy