Ticket #6829: 6829.patch

File 6829.patch, 1.5 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/wsc/dialogs/wsc.js

     
    2323                        ' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' +
    2424                '</div><iframe' +
    2525                        ' src=""' +
    26                         ' style="width:485px;background-color:#f1f1e3;height:380px"' +
     26                        ' style="width:100%;background-color:#f1f1e3;"' +
    2727                        ' frameborder="0"' +
    2828                        ' name="' + iframeId + '"' +
    2929                        ' id="' + iframeId + '"' +
     
    129129                {
    130130                        var contentArea = this.getContentElement( 'general', 'content' ).getElement();
    131131                        contentArea.setHtml( pasteArea );
     132                        contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' );
    132133
    133134                        if ( typeof( window.doSpell ) != 'function' )
    134135                        {
     
    166167                                        {
    167168                                                type : 'html',
    168169                                                id : 'content',
    169                                                 style : 'width:485;height:380px',
    170                                                 html : '<div></div>'
     170                                                html : ''
    171171                                        }
    172172                                ]
    173173                        }
    174174                ]
    175175        };
    176176});
     177
     178// Expand the spell-check frame when dialog resized. (#6829)
     179CKEDITOR.dialog.on( 'resize', function( evt )
     180{
     181        var data = evt.data,
     182                dialog = data.dialog,
     183                height = data.height;
     184                var content = dialog.getContentElement( 'general', 'content' ).getElement(),
     185                                iframe = content && content.getChild( 2 );
     186                iframe && iframe.setStyle( 'height', height + 'px' );
     187});
     188
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy