Ticket #1838: 1838_2.patch

File 1838_2.patch, 2.1 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    8787                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2016">#2016</a>] The Link
    8888                        dialog now properly select the first field when opening it to modify mailto or anchor
    8989                        links. This problem was also throwing an error in IE.</li>
     90                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1838">#1838</a>] Fixed the
     91                        issue where context menus sometimes don't disappear after selecting an option.
     92                        </li>
    9093        </ul>
    9194        <h3>
    9295                Version 2.6 Beta 1</h3>
  • editor/_source/classes/fckpanel.js

     
    270270                                top             : y + 'px'
    271271                        } ) ;
    272272
     273                // Move the focus to the IFRAME so we catch the "onblur".
     274                this._IFrame.contentWindow.focus() ;
     275                this._IsOpened = true ;
     276
    273277                var me = this ;
    274                 var resizeFunc = function()
    275                 {
    276                         var iWidth = eMainNode.offsetWidth || eMainNode.firstChild.offsetWidth ;
    277                         var iHeight = eMainNode.offsetHeight ;
    278                         me._IFrame.width = iWidth ;
    279                         me._IFrame.height = iHeight ;
     278                this._resizeTimer = setTimeout( function()
     279                        {
     280                                var iWidth = eMainNode.offsetWidth || eMainNode.firstChild.offsetWidth ;
     281                                var iHeight = eMainNode.offsetHeight ;
     282                                me._IFrame.width = iWidth ;
     283                                me._IFrame.height = iHeight ;
    280284
    281                         // Move the focus to the IFRAME so we catch the "onblur".
    282                         me._IFrame.contentWindow.focus() ;
    283                         me._IsOpened = true ;
    284                 }
    285                 setTimeout( resizeFunc, 1 ) ;
     285                        }, 0 ) ;
    286286
    287287                FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'FCKPanel' )._OpenedPanel = this ;
    288288        }
     
    309309
    310310                this._IsOpened = false ;
    311311
     312                if ( this._resizeTimer )
     313                {
     314                        clearTimeout( this._resizeTimer ) ;
     315                        this._resizeTimer = null ;
     316                }
     317
    312318                if ( this.ParentPanel )
    313319                        this.ParentPanel.Unlock() ;
    314320
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy