Ticket #3804: 3804.patch
File 3804.patch, 1.4 KB (added by , 15 years ago) |
---|
-
_source/core/dom/element.js
1109 1109 clientTop = docElem.clientTop || body.$.clientTop || 0, 1110 1110 clientLeft = docElem.clientLeft || body.$.clientLeft || 0; 1111 1111 1112 x = box.left + ( !CKEDITOR.env.quirks && docElem.scrollLeft || body.$.scrollLeft ); 1112 x = box.left + ( !CKEDITOR.env.ie && !CKEDITOR.env.quirks 1113 && docElem.scrollLeft || body.$.scrollLeft ); 1113 1114 x -= clientLeft; 1114 y = box.top + ( !CKEDITOR.env.quirks && docElem.scrollTop || body.$.scrollTop ); 1115 y = box.top + ( !CKEDITOR.env.ie && !CKEDITOR.env.quirks 1116 && docElem.scrollTop || body.$.scrollTop ); 1115 1117 y -= clientTop; 1118 1116 1119 } 1117 1120 else 1118 1121 { … … 1142 1145 new CKEDITOR.dom.element( offsetParent ) : null; 1143 1146 } 1144 1147 } 1145 1146 1148 if ( refDocument ) 1147 1149 { 1148 1150 var currentWindow = this.getWindow(), … … 1151 1153 if ( !currentWindow.equals( refWindow ) && currentWindow.$.frameElement ) 1152 1154 { 1153 1155 var iframePosition = ( new CKEDITOR.dom.element( currentWindow.$.frameElement ) ).getDocumentPosition( refDocument ); 1154 1155 1156 x += iframePosition.x; 1156 1157 y += iframePosition.y; 1157 1158 } … … 1167 1168 y += this.$.clientTop ? 1 : 0; 1168 1169 } 1169 1170 } 1170 1171 1171 return { x : x, y : y }; 1172 1172 }, 1173 1173