Ticket #1838: 1838_2.patch
File 1838_2.patch, 2.1 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
87 87 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2016">#2016</a>] The Link 88 88 dialog now properly select the first field when opening it to modify mailto or anchor 89 89 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> 90 93 </ul> 91 94 <h3> 92 95 Version 2.6 Beta 1</h3> -
editor/_source/classes/fckpanel.js
270 270 top : y + 'px' 271 271 } ) ; 272 272 273 // Move the focus to the IFRAME so we catch the "onblur". 274 this._IFrame.contentWindow.focus() ; 275 this._IsOpened = true ; 276 273 277 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 ; 280 284 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 ) ; 286 286 287 287 FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'FCKPanel' )._OpenedPanel = this ; 288 288 } … … 309 309 310 310 this._IsOpened = false ; 311 311 312 if ( this._resizeTimer ) 313 { 314 clearTimeout( this._resizeTimer ) ; 315 this._resizeTimer = null ; 316 } 317 312 318 if ( this.ParentPanel ) 313 319 this.ParentPanel.Unlock() ; 314 320