Ticket #3494: 3494.patch

File 3494.patch, 2.1 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Partial patch

  • _source/plugins/floatpanel/plugin.js

     
    135135                                                display : ''
    136136                                        });
    137137
     138                                // To allow the context menu to decrease back their width
     139                                element.getFirst().removeStyle('width');
     140
    138141                                // Configure the IFrame blur event. Do that only once.
    139142                                if ( !this._.blurSet )
    140143                                {
     
    205208
    206209                                                                target.setStyle( 'height', height + 'px' );
    207210
     211                                                                var widthNode = block.element.$.parentNode;
     212
     213                                                                if ( CKEDITOR.env.ie)
     214                                                                        widthNode = widthNode.document.body;
     215
     216                                                                var width = widthNode.scrollWidth;
     217                                                                // Account for extra height needed due to IE quirks box model bug:
     218                                                                // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug
     219                                                                // (#3426)
     220                                                                if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && width > 0 )
     221                                                                        width += ( target.$.offsetWidth || 0 ) - ( target.$.clientWidth || 0 );
     222
     223                                                                if (CKEDITOR.env.ie)
     224                                                                        width += 4;
     225
     226                                                                target.setStyle( 'width', width + 'px' );
     227
     228                                                                // IE doesn't compute the scrollWidth if a filter is applied previously
     229                                                                block.element.addClass( 'cke_frameLoaded')
     230
    208231                                                                // Fix IE < 8 visibility.
    209232                                                                panel._.currentBlock.element.setStyle( 'display', 'none' ).removeStyle( 'display' );
    210233                                                        }
  • _source/skins/kama/menu.css

     
    9494        height:19px;
    9595        margin-left: 24px;
    9696        background-color: #fff;
    97         _overflow: hidden;
    98         _width: 80px;
     97}
     98/* Set these after the document has been loaded and we know the dimensions*/
     99.cke_frameLoaded .cke_menuitem .cke_label
     100{
    99101        filter: alpha(opacity=70); /* IE */
    100102        opacity: 0.70; /* Safari, Opera and Mozilla */
     103        _overflow: hidden;
     104        /*_width: 80px;*/
    101105}
    102 
    103106.cke_rtl .cke_skin_kama .cke_menuitem .cke_label
    104107{
    105108        padding-right: 0;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy