Skip to content

Commit 55d8e94

Browse files
committed
Next fix (workaround) for HTML5 positioning in Chrome
1 parent d922781 commit 55d8e94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/JSRootPainter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,7 @@
14451445
// canvas element offset relative to first parent with position
14461446
var offx = 0, offy = 0;
14471447
while ((prnt !== null) && !offx && !offy) {
1448+
if (prnt.style.top || prnt.style.left) break;
14481449
offx += prnt.offsetLeft;
14491450
offy += prnt.offsetTop;
14501451
prnt = prnt.parentNode;

0 commit comments

Comments
 (0)