Skip to content

Commit

Permalink
Fix setting size styles on clonedBody for dynamicsize option
Browse files Browse the repository at this point in the history
  • Loading branch information
kodie committed Oct 21, 2021
1 parent beedf49 commit 3063de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/winbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ function WinBox(params, _title){
clonedBody.insertAdjacentElement("afterbegin", getByClass(this.dom, "wb-title").cloneNode(true));
}

if(width) setStyle(clonedBody, "width", parse(width, max_width));
if(height) setStyle(clonedBody, "height", parse(width, max_width));
if(width) setStyle(clonedBody, "width", parse(width, max_width) + 'px');
if(height) setStyle(clonedBody, "height", parse(width, max_width) + 'px');

(root || body).appendChild(clonedBody);

Expand Down

0 comments on commit 3063de7

Please sign in to comment.