Ticket #6970: 6970_2.patch

File 6970_2.patch, 4.7 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/find/dialogs/find.js

     
    604604                        title : lang.title,
    605605                        resizable : CKEDITOR.DIALOG_RESIZE_NONE,
    606606                        minWidth : 350,
    607                         minHeight : 165,
     607                        minHeight : 170,
    608608                        buttons : [ CKEDITOR.dialog.cancelButton ],             // Cancel button only.
    609609                        contents : [
    610610                                {
  • _source/plugins/image/dialogs/image.js

     
    262262                        previewImageId = numbering( 'previewImage' );
    263263
    264264                return {
    265                         title : ( dialogType == 'image' ) ? editor.lang.image.title : editor.lang.image.titleButton,
     265                        title : editor.lang.image[ dialogType == 'image' ? 'title' : 'titleButton' ],
    266266                        minWidth : 420,
    267                         minHeight : CKEDITOR.env.ie && CKEDITOR.env.quirks?  360: 310,
     267                        minHeight : 360,
    268268                        onShow : function()
    269269                        {
    270270                                this.imageElement = false;
  • _source/skins/kama/skin.js

     
    216216                                                width : width + 'px',
    217217                                                height : height + 'px'
    218218                                        });
    219 
    220                                 // Fix the size of the elements which have flexible lengths.
    221                                 setTimeout( function()
    222                                         {
    223                                                 var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
    224                                                         body = innerDialog.getChild( 0 );
    225 
    226                                                 // tc
    227                                                 var el = innerDialog.getChild( 2 );
    228                                                 el.setStyle( 'width', ( body.$.offsetWidth ) + 'px' );
    229 
    230                                                 // bc
    231                                                 el = innerDialog.getChild( 7 );
    232                                                 el.setStyle( 'width', ( body.$.offsetWidth - 28 ) + 'px' );
    233 
    234                                                 // ml
    235                                                 el = innerDialog.getChild( 4 );
    236                                                 el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );
    237 
    238                                                 // mr
    239                                                 el = innerDialog.getChild( 5 );
    240                                                 el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );
    241                                         },
    242                                         100 );
    243219                        });
    244220        }
    245221})();
  • _source/skins/office2003/skin.js

     
    4343                                var fixSize = function()
    4444                                        {
    4545                                                var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
    46                                                         body = innerDialog.getChild( 0 );
     46                                                        body = innerDialog.getChild( 0 ),
     47                                                        bodyWidth = body.getSize( 'width' );
     48                                                height += body.getChild( 0 ).getSize( 'height' ) + 1;
    4749
    4850                                                // tc
    4951                                                var el = innerDialog.getChild( 2 );
    50                                                 el.setStyle( 'width', ( body.$.offsetWidth ) + 'px' );
     52                                                el.setSize( 'width', bodyWidth );
    5153
    5254                                                // bc
    5355                                                el = innerDialog.getChild( 7 );
    54                                                 el.setStyle( 'width', ( body.$.offsetWidth - 28 ) + 'px' );
     56                                                el.setSize( 'width', bodyWidth - 28 );
    5557
    5658                                                // ml
    5759                                                el = innerDialog.getChild( 4 );
    58                                                 el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );
     60                                                el.setSize( 'height', height );
    5961
    6062                                                // mr
    6163                                                el = innerDialog.getChild( 5 );
    62                                                 el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );
     64                                                el.setSize( 'height', height );
    6365                                        };
    6466                                setTimeout( fixSize, 100 );
    6567
  • _source/skins/v2/skin.js

     
    4343                                setTimeout( function()
    4444                                        {
    4545                                                var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
    46                                                         body = innerDialog.getChild( 0 );
     46                                                        body = innerDialog.getChild( 0 ),
     47                                                        bodyWidth = body.getSize( 'width' );
     48                                                height += body.getChild( 0 ).getSize( 'height' ) + 1;
    4749
    4850                                                // tc
    4951                                                var el = innerDialog.getChild( 2 );
    50                                                 el.setStyle( 'width', ( body.$.offsetWidth ) + 'px' );
     52                                                el.setSize( 'width', bodyWidth );
    5153
    5254                                                // bc
    5355                                                el = innerDialog.getChild( 7 );
    54                                                 el.setStyle( 'width', ( body.$.offsetWidth - 28 ) + 'px' );
     56                                                el.setSize( 'width', bodyWidth - 28 );
    5557
    5658                                                // ml
    5759                                                el = innerDialog.getChild( 4 );
    58                                                 el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );
     60                                                el.setSize( 'height', height );
    5961
    6062                                                // mr
    6163                                                el = innerDialog.getChild( 5 );
    62                                                 el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );
     64                                                el.setSize( 'height', height );
    6365                                        },
    6466                                        100 );
    6567                        });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy