Fix rendering width

This commit is contained in:
Sauli Anto 2019-10-04 18:45:32 +03:00
parent ff0742cae3
commit 1527c7c9eb

View File

@ -140,7 +140,7 @@ function moveAndScaleElement( parent, element ) {
// Scale parent element same as preview
const domRect = element.getBoundingClientRect();
// element.style.width = domRect.width + 'px';
parent.style.width = domRect.width + 'px';
parent.style.height = domRect.height + 'px';
}