Ticket #3688: 3688.patch
File 3688.patch, 1.1 KB (added by , 16 years ago) |
---|
-
_source/core/dom/element.js
1101 1101 var x = 0, y = 0, 1102 1102 body = this.getDocument().getBody(); 1103 1103 1104 if ( document.documentElement[ "getBoundingClientRect" ] ) { 1104 if ( document.documentElement[ "getBoundingClientRect" ] ) 1105 { 1105 1106 var box = this.$.getBoundingClientRect(), 1106 1107 doc = this.getDocument().$, 1107 1108 docElem = doc.documentElement, … … 1135 1136 y -= scrollElement.$.scrollTop; 1136 1137 scrollElement = scrollElement.getParent(); 1137 1138 } 1139 } 1138 1140 1139 1141 previous = current; 1140 1142 current = ( offsetParent = current.$.offsetParent ) ? … … 1155 1157 } 1156 1158 } 1157 1159 1158 if ( !document.documentElement[ "getBoundingClientRect" ] ) { 1160 if ( !document.documentElement[ "getBoundingClientRect" ] ) 1161 { 1159 1162 // In Firefox, we'll endup one pixel before the element positions, 1160 1163 // so we must add it here. 1161 1164 if ( CKEDITOR.env.gecko && !CKEDITOR.env.quirks )