Skip to content

Commit

Permalink
Update easydlg.js
Browse files Browse the repository at this point in the history
  • Loading branch information
keejelo authored Aug 28, 2021
1 parent 6b84806 commit 9af1c33
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions js/easydlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,25 +723,22 @@ var EasyDialogBox = (function()
// ** Save position - preHTML dialogboxes depends on this to remember last position
if(obj.x)
{
obj.x = _s2i(box.style.left);
obj.customPosX = obj.x;
obj.xPos(obj.x);
}
if(obj.y)
{
obj.y = _s2i(box.style.top);
obj.customPosY = obj.y;
obj.yPos(obj.y);
}

// ** Save current size
if(obj.w)
{
obj.width(box.style.maxWidth);
obj.customWidth = _s2i(box.style.maxWidth);
obj.width(obj.w);
}

if(obj.h)
{
obj.height(box.style.height);
obj.customHeight = _s2i(box.style.height);
obj.height(obj.h);
}

// ** Hide the overlay/fade out, run "onHide"
Expand Down

0 comments on commit 9af1c33

Please sign in to comment.