Ticket #3545: 3545_2.patch

File 3545_2.patch, 5.4 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    211211                                                                                iframe.setAttribute( 'title', ' ' );
    212212                                                                        }
    213213                                                                }
    214                                                                 iframe.$.contentWindow.focus();
     214                                                                if ( CKEDITOR.env.ie && CKEDITOR.env.quirks )
     215                                                                        iframe.focus();
     216                                                                else
     217                                                                        iframe.$.contentWindow.focus();
    215218                                                        }, 0);
    216219                                        }, 0);
    217220
  • _source/plugins/menu/plugin.js

     
    158158                                        element = this._.element = block.element;
    159159                                        element.addClass( editor.skinClass );
    160160                                        element.getDocument().getBody().setStyle( 'overflow', 'hidden' );
     161                                        element.getDocument().getElementsByTag('html').getItem(0).setStyle( 'overflow', 'hidden' );
    161162
    162163                                        this._.itemOverFn = CKEDITOR.tools.addFunction( function( index )
    163164                                                {
  • _source/skins/office2003/menu.css

     
    55
    66.cke_skin_office2003 .cke_contextmenu
    77{
    8     padding: 2px;
     8        padding: 2px;
    99}
    1010
    1111.cke_skin_office2003 .cke_menuitem a
     
    7171    margin-left: 28px;
    7272    background-color: #fff;
    7373        _overflow: hidden;
    74         _width: 86px;
     74        _width: 80px;
    7575}
    7676
    7777.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_label
  • _source/skins/v2/menu.css

     
    55
    66.cke_skin_v2 .cke_contextmenu
    77{
    8     padding: 2px;
     8        padding: 2px;
    99}
    1010
    1111.cke_skin_v2 .cke_menuitem a
     
    7171    margin-left: 28px;
    7272    background-color: #fff;
    7373        _overflow: hidden;
    74         _width: 86px;
     74        _width: 80px;
    7575}
    7676
    7777.cke_rtl .cke_skin_v2 .cke_menuitem .cke_label
  • _source/core/dom/element.js

     
    1 /*
     1/*
    22Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
     
    10911091
    10921092                getDocumentPosition : function( refDocument )
    10931093                {
    1094                         var x = 0, y = 0, current = this, previous = null;
    1095                         while ( current && !( current.getName() == 'body' || current.getName() == 'html' ) )
     1094                        var x = 0, y = 0,
     1095                                body = this.getDocument().getBody();
     1096                        if ( document.documentElement["getBoundingClientRect"] ) {
     1097                                var box  = this.$.getBoundingClientRect(),
     1098                                        doc = this.getDocument().$,
     1099                                        docElem = doc.documentElement,
     1100                                        clientTop = docElem.clientTop || body.$.clientTop || 0,
     1101                                        clientLeft = docElem.clientLeft || body.$.clientLeft || 0;
     1102
     1103                                x = box.left + (!CKEDITOR.env.quirks && docElem.scrollLeft || body.$.scrollLeft);
     1104                                x -= clientLeft;
     1105                                y = box.top  + (!CKEDITOR.env.quirks && docElem.scrollTop  || body.$.scrollTop );
     1106                                y -= clientTop;
     1107                        }
     1108                        else
    10961109                        {
    1097                                 x += current.$.offsetLeft - current.$.scrollLeft;
    1098                                 y += current.$.offsetTop - current.$.scrollTop;
     1110                                var current = this, previous = null;
     1111                                while ( current && !( current.getName() == 'body' || current.getName() == 'html' ) )
     1112                                {
     1113                                        x += current.$.offsetLeft - current.$.scrollLeft;
     1114                                        y += current.$.offsetTop - current.$.scrollTop;
    10991115
    1100                                 if ( !CKEDITOR.env.opera )
    1101                                 {
    1102                                         // Opera includes clientTop|Left into offsetTop|Left.
    1103                                         if ( !current.equals( this ) )
     1116                                        if ( !CKEDITOR.env.opera )
    11041117                                        {
    1105                                                 x += ( current.$.clientLeft || 0 );
    1106                                                 y += ( current.$.clientTop || 0 );
     1118                                                // Opera includes clientTop|Left into offsetTop|Left.
     1119                                                if ( !current.equals( this ) )
     1120                                                {
     1121                                                        x += ( current.$.clientLeft || 0 );
     1122                                                        y += ( current.$.clientTop || 0 );
     1123                                                }
     1124
     1125                                                var scrollElement = previous;
     1126                                                while ( scrollElement && !scrollElement.equals( current ) )
     1127                                                {
     1128                                                        x -= scrollElement.$.scrollLeft;
     1129                                                        y -= scrollElement.$.scrollTop;
     1130                                                        scrollElement = scrollElement.getParent();
     1131                                                }
    11071132                                        }
    11081133
    1109                                         var scrollElement = previous;
    1110                                         while ( scrollElement && !scrollElement.equals( current ) )
    1111                                         {
    1112                                                 x -= scrollElement.$.scrollLeft;
    1113                                                 y -= scrollElement.$.scrollTop;
    1114                                                 scrollElement = scrollElement.getParent();
    1115                                         }
     1134                                        previous = current;
     1135                                        current = new CKEDITOR.dom.element( current.$.offsetParent );
    11161136                                }
    1117 
    1118                                 previous = current;
    1119                                 current = new CKEDITOR.dom.element( current.$.offsetParent );
    11201137                        }
    11211138
    11221139                        if ( refDocument )
    11231140                        {
    1124                                 var currentWindow = current.getWindow(),
     1141                                var currentWindow = this.getWindow(),
    11251142                                        refWindow = refDocument.getWindow();
    11261143
    11271144                                if ( !currentWindow.equals( refWindow ) && currentWindow.$.frameElement )
     
    11331150                                }
    11341151                        }
    11351152
    1136                         var body = this.getDocument().getBody();
    1137 
    11381153                        // document.body is a special case when it comes to offsetTop and offsetLeft
    11391154                        // values.
    11401155                        // 1. It does not matter if we're in IE Quirks mode - in this case body is
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy