We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3f9c14 commit 1eff27aCopy full SHA for 1eff27a
packages/joint-core/src/mvc/Dom/methods.mjs
@@ -337,8 +337,8 @@ export function position() {
337
doc = el.ownerDocument;
338
offsetParent = el.offsetParent || doc.documentElement;
339
const isStaticallyPositioned = (el) => {
340
- const { position } = el.style;
341
- return !position || position === 'static';
+ const { position } = getComputedStyle(el);
+ return position === 'static';
342
};
343
while (offsetParent && offsetParent !== doc.documentElement && isStaticallyPositioned(offsetParent)) {
344
offsetParent = offsetParent.offsetParent || doc.documentElement;
0 commit comments