Ticket #4521: 4521.patch

File 4521.patch, 1.6 KB (added by Garry Yao, 15 years ago)
  • _source/skins/kama/skin.js

     
    212212                                height = data.height,
    213213                                dialog = data.dialog,
    214214                                contents = dialog.parts.contents,
     215                                footer = dialog.parts.footer,
    215216                                standardsMode = !CKEDITOR.env.quirks;
    216217
    217218                        if ( data.skin != 'kama' )
     
    232233                                                'min-height' : height + 'px'
    233234                                        });
    234235
     236                        // Temporary fix for footer scretch dialog size problem in IE7 (#4521). 
     237                        if( CKEDITOR.env.ie7Compat )
     238                                footer.setStyles( { width : ( contents.$.offsetWidth - 2 ) + 'px' } );
     239
    235240                        if ( !CKEDITOR.env.ie )
    236241                                return;
    237242
  • _source/skins/kama/dialog.css

     
    435435        position: relative;
    436436}
    437437
     438/* IE7 could shift the footer when background style changed with the above styles,
     439   use another approach for right align here.(#4521)*/
     440.cke_skin_kama .cke_browser_ie7 .cke_dialog_footer_buttons
     441{
     442        display: block;
     443        margin-right: 12px;
     444        margin-left: auto;
     445        width: auto;
     446        position: static;
     447}
     448.cke_skin_kama .cke_browser_ie7.cke_rtl .cke_dialog_footer_buttons
     449{
     450        margin-left: 12px;
     451        margin-right: auto;
     452}
     453
    438454/* Gecko 1.8 does not support for display: inline-table */
    439455.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons
    440456{
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy