Ticket #4084: 4084_3.patch

File 4084_3.patch, 1.4 KB (added by Tobiasz Cudnik, 15 years ago)
  • CHANGES.html

     
    162162                        ckeditor2.html test case.</li>
    163163                <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>
    164164                <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>
    165166        </ul>
    166167        <h3>
    167168                CKEditor 3.0 RC</h3>
  • _source/plugins/dialog/plugin.js

     
    647647                                        var viewSize = CKEDITOR.document.getWindow().getViewPaneSize();
    648648                                        var dialogSize = this.getSize();
    649649
    650                                         this.move( ( viewSize.width - dialogSize.width ) / 2, ( viewSize.height - dialogSize.height ) / 2 );
     650                                        // We're using definition size for initial position because of
     651                                        // offten corrupted data in offsetWidth at this point. (#4084)
     652                                        this.move( ( viewSize.width - definition.minWidth ) / 2, ( viewSize.height - dialogSize.height ) / 2 );
    651653
    652654                                        this.parts.dialog.setStyle( 'visibility', '' );
    653655
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy