Ticket #3688: 3688.patch

File 3688.patch, 1.1 KB (added by Martin Kou, 16 years ago)
  • _source/core/dom/element.js

     
    11011101                        var x = 0, y = 0,
    11021102                                body = this.getDocument().getBody();
    11031103
    1104                         if ( document.documentElement[ "getBoundingClientRect" ] ) {
     1104                        if ( document.documentElement[ "getBoundingClientRect" ] )
     1105                        {
    11051106                                var box  = this.$.getBoundingClientRect(),
    11061107                                        doc = this.getDocument().$,
    11071108                                        docElem = doc.documentElement,
     
    11351136                                                y -= scrollElement.$.scrollTop;
    11361137                                                scrollElement = scrollElement.getParent();
    11371138                                        }
     1139                                }
    11381140
    11391141                                previous = current;
    11401142                                current = ( offsetParent = current.$.offsetParent ) ?
     
    11551157                                }
    11561158                        }
    11571159
    1158                         if ( !document.documentElement[ "getBoundingClientRect" ] ) {
     1160                        if ( !document.documentElement[ "getBoundingClientRect" ] )
     1161                        {
    11591162                                // In Firefox, we'll endup one pixel before the element positions,
    11601163                                // so we must add it here.
    11611164                                if ( CKEDITOR.env.gecko && !CKEDITOR.env.quirks )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy