Ticket #3767: 3767.patch

File 3767.patch, 2.2 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    141141                                        // guarantee they will be firing in all situations. (#3068, #3222 )
    142142                                        CKEDITOR.event.useCapture = true;
    143143
    144                                         focused.on( 'blur', function( ev )
    145                                                 {
    146                                                         if ( CKEDITOR.env.ie && !this.allowBlur() )
    147                                                                 return;
     144//                                      focused.on( 'blur', function( ev )
     145//                                              {
     146//                                                      if ( CKEDITOR.env.ie && !this.allowBlur() )
     147//                                                              return;
     148//
     149//                                                      // As we are using capture to register the listener,
     150//                                                      // the blur event may get fired even when focusing
     151//                                                      // inside the window itself, so we must ensure the
     152//                                                      // target is out of it.
     153//                                                      var target = ev.data.getTarget(),
     154//                                                              targetWindow = target.getWindow && target.getWindow();
     155//
     156//                                                      if ( targetWindow && targetWindow.equals( focused ) )
     157//                                                              return;
     158//
     159//                                                      if ( this.visible && !this._.activeChild && !isShowing )
     160//                                                              this.hide();
     161//                                              },
     162//                                              this );
    148163
    149                                                         // As we are using capture to register the listener,
    150                                                         // the blur event may get fired even when focusing
    151                                                         // inside the window itself, so we must ensure the
    152                                                         // target is out of it.
    153                                                         var target = ev.data.getTarget(),
    154                                                                 targetWindow = target.getWindow && target.getWindow();
    155 
    156                                                         if ( targetWindow && targetWindow.equals( focused ) )
    157                                                                 return;
    158 
    159                                                         if ( this.visible && !this._.activeChild && !isShowing )
    160                                                                 this.hide();
    161                                                 },
    162                                                 this );
    163 
    164164                                        focused.on( 'focus', function()
    165165                                                {
    166166                                                        this._.focused = true;
     
    295295                                this._.focused = false;
    296296
    297297                                panel.showBlock( blockName, offsetParent, corner, offsetX, offsetY );
     298
     299                                /* #3767 IE: Second level menu may not have borders */
     300                                if ( CKEDITOR.env.ie7Compat ) {
     301                                        setTimeout(function(){
     302                                                panel.element.getChild( 0 ).$.style.cssText = panel.element.getChild( 0 ).$.style.cssText;
     303                                        }, 100);
     304                                }
    298305                        },
    299306
    300307                        hideChild : function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy