Ticket #4459: 4459.patch

File 4459.patch, 987 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/maximize/plugin.js

     
    8787                };
    8888        }
    8989
     90        function toggleHTMLSelect( off )
     91        {
     92                var selects = CKEDITOR.document.getElementsByTag( 'select' );
     93                for ( var i = 0, count = selects.count(); i < count; i++ )
     94                        selects.getItem( i ).$.runtimeStyle[ ( off ? 'set' : 'remove' ) + 'Attribute' ]( 'display',  off ? 'none' : '' );
     95        }
     96
    9097        CKEDITOR.plugins.add( 'maximize',
    9198        {
    9299                init : function( editor )
     
    226233                                                        editor.fire( 'resize' );
    227234                                                }
    228235
     236                                                // Work around IE6 select z-order bug by hidding all selects. (#4459) 
     237                                                if ( CKEDITOR.env.ie6Compat && !CKEDITOR.env.ie8 )
     238                                                        toggleHTMLSelect( this.state == CKEDITOR.TRISTATE_OFF );
     239                                               
    229240                                                this.toggleState();
    230241
    231242                                                // Toggle button label.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy