Ticket #4084: 4084_2.patch
File 4084_2.patch, 2.3 KB (added by , 14 years ago) |
---|
-
CHANGES.html
162 162 ckeditor2.html test case.</li> 163 163 <li><a href="http://dev.fckeditor.net/ticket/3989">#3989</a> : Host page horizontal scrolling a lot when on having righ-to-left direction.</li> 164 164 <li><a href="http://dev.fckeditor.net/ticket/4001">#4001</a> : Create link around existing image result incorrect.</li> 165 <li><a href="http://dev.fckeditor.net/ticket/4084">#4084</a> : In Firefox image dialog using Kama skin was sticked to left viewport border.</li> 165 166 </ul> 166 167 <h3> 167 168 CKEditor 3.0 RC</h3> -
_source/plugins/dialog/plugin.js
642 643 this._.hasFocus = false; 643 644 644 645 // Rearrange the dialog to the middle of the window. 645 CKEDITOR.tools.setTimeout( function() 646 { 647 var viewSize = CKEDITOR.document.getWindow().getViewPaneSize(); 648 var dialogSize = this.getSize(); 646 var viewSize = CKEDITOR.document.getWindow().getViewPaneSize(); 649 647 650 this.move( ( viewSize.width - dialogSize.width ) / 2, ( viewSize.height - dialogSize.height ) / 2 ); 648 // We're using definition size for initial position because of 649 // offten corrupted data in offsetWidth at this point. (#4084) 650 this.move( ( viewSize.width - definition.minWidth ) / 2, ( viewSize.height - definition.minHeight ) / 2 ); 651 651 652 652 this.parts.dialog.setStyle( 'visibility', '' ); 653 653 654 655 656 654 // Execute onLoad for the first show. 655 this.fireOnce( 'load', {} ); 656 this.fire( 'show', {} ); 657 657 658 // Save the initial values of the dialog. 659 this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } ); 660 661 }, 662 100, this ); 663 }, 658 // Save the initial values of the dialog. 659 this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } ); 660 }, 664 661 665 662 /** 666 663 * Executes a function for each UI element.