Ticket #3426: 3426.patch

File 3426.patch, 942 bytes (added by Martin Kou, 15 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    169169                                                {
    170170                                                        function setHeight()
    171171                                                        {
    172                                                                 element.getFirst().setStyle( 'height', block.element.$.scrollHeight + 'px' );
     172                                                                var target = element.getFirst();
     173                                                                var height = block.element.$.scrollHeight;
     174
     175                                                                // Account for extra height needed due to IE quirks box model bug:
     176                                                                // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug
     177                                                                // (#3426)
     178                                                                if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && height > 0 )
     179                                                                        height += ( target.$.offsetHeight || 0 ) - ( target.$.clientHeight || 0 );
     180
     181                                                                target.setStyle( 'height', height + 'px' );
    173182                                                        }
    174183
    175184                                                        if ( !CKEDITOR.env.gecko || panel.isLoaded )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy