Merge pull request #4314 from Dmytro-Lukashenko/fix/fix-dialog-getcomputedstyle-error

Fix/fix dialog getComputedStyle error
pull/4343/head
Tuğçe Küçükoğlu 2023-08-23 09:40:56 +03:00 committed by GitHub
commit bf2aa1dbdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -323,9 +323,9 @@ export default {
let leftPos = offset.left + deltaX; let leftPos = offset.left + deltaX;
let topPos = offset.top + deltaY; let topPos = offset.top + deltaY;
let viewport = DomHandler.getViewport(); let viewport = DomHandler.getViewport();
let getComputedStyle = getComputedStyle(this.container); let containerComputedStyle = getComputedStyle(this.container);
let marginLeft = parseFloat(getComputedStyle.marginLeft); let marginLeft = parseFloat(containerComputedStyle.marginLeft);
let marginTop = parseFloat(getComputedStyle.marginTop); let marginTop = parseFloat(containerComputedStyle.marginTop);
this.container.style.position = 'fixed'; this.container.style.position = 'fixed';