Skip to content

Commit

Permalink
Code Format
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Aug 15, 2023
1 parent ff5b2f7 commit 8c54e80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/lib/dialog/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export default {
let leftPos = offset.left + deltaX;
let topPos = offset.top + deltaY;
let viewport = DomHandler.getViewport();
let getComputedStyle = getComputedStyle(this.container)
let getComputedStyle = getComputedStyle(this.container);
let marginLeft = parseFloat(getComputedStyle.marginLeft);
let marginTop = parseFloat(getComputedStyle.marginTop);
Expand All @@ -332,18 +332,18 @@ export default {
if (this.keepInViewport) {
if (leftPos >= this.minX && leftPos + width < viewport.width) {
this.lastPageX = event.pageX;
this.container.style.left = (leftPos - marginLeft) + 'px';
this.container.style.left = leftPos - marginLeft + 'px';
}
if (topPos >= this.minY && topPos + height < viewport.height) {
this.lastPageY = event.pageY;
this.container.style.top = (topPos - marginTop) + 'px';
this.container.style.top = topPos - marginTop + 'px';
}
} else {
this.lastPageX = event.pageX;
this.container.style.left = (leftPos - marginLeft) + 'px';
this.container.style.left = leftPos - marginLeft + 'px';
this.lastPageY = event.pageY;
this.container.style.top = (topPos - marginTop) + 'px';
this.container.style.top = topPos - marginTop + 'px';
}
}
};
Expand Down Expand Up @@ -373,7 +373,7 @@ export default {
window.document.removeEventListener('mouseup', this.documentDragEndListener);
this.documentDragEndListener = null;
}
},
}
},
computed: {
maximizeIconComponent() {
Expand Down

0 comments on commit 8c54e80

Please sign in to comment.