Ticket #5565: 5565_3.patch

File 5565_3.patch, 1.7 KB (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    129129
    130130                                element.setStyles(
    131131                                        {
    132                                                 top : top + 'px',
    133                                                 left : '-3000px',
    134                                                 opacity : '0',  // FF3 is ignoring "visibility"
     132                                                top : '-30000px',
    135133                                                display : ''
    136134                                        });
     135                                // Don't use display or visibility style because we need to 
     136                                // calculate the rendering layout later and focus the element. 
     137                                element.setOpacity( 0 );
    137138
    138139                                // To allow the context menu to decrease back their width
    139                                 element.getFirst().removeStyle('width');
     140                                element.getFirst().removeStyle( 'width' );
    140141
    141142                                // Configure the IFrame blur event. Do that only once.
    142143                                if ( !this._.blurSet )
     
    203204                                                                // We must adjust first the width or IE6 could include extra lines in the height computation
    204205                                                                var widthNode = block.element.$;
    205206
    206                                                                 if ( CKEDITOR.env.gecko || CKEDITOR.env.opera)
     207                                                                if ( CKEDITOR.env.gecko || CKEDITOR.env.opera )
    207208                                                                        widthNode = widthNode.parentNode;
    208209
    209                                                                 if ( CKEDITOR.env.ie)
     210                                                                if ( CKEDITOR.env.ie )
    210211                                                                        widthNode = widthNode.document.body;
    211212
    212213                                                                var width = widthNode.scrollWidth;
     
    262263                                                        element.setStyles(
    263264                                                                {
    264265                                                                        top : top + 'px',
    265                                                                         left : left + 'px',
    266                                                                         opacity : '1'
     266                                                                        left : left + 'px'
    267267                                                                } );
    268 
     268                                                        element.setOpacity( 1 );
    269269                                                } , this );
    270270
    271271                                                panel.isLoaded ? panelLoad() : panel.onLoad = panelLoad;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy