vue-draggable-resizable icon indicating copy to clipboard operation
vue-draggable-resizable copied to clipboard

Increase parent height programatically does not affect elements

Open o1o1o3 opened this issue 5 years ago • 2 comments

Initial HTML:

<div id="drag-parent" style="min-width="100%" min-height="300px" height="300px">
<vue-draggable-resizable :parent="true">
<p>Hello world</p>
</vue-draggable-resizable>
</div>

Okay, it is rendered. Now i want to increase height of drag-parent element:

let dragParent = document.getElementById('drag-parent');
const t = dragParent.offsetWidth + 300
dragParent.style.width = t.toString() + "px";

And now, height of drag-parent is 600px, but drag element i can only in height of 300px.

If i add new one element dynamically, it will count with new height 600px.

o1o1o3 avatar May 28 '20 17:05 o1o1o3

Any feedback?

o1o1o3 avatar Jun 17 '20 18:06 o1o1o3

See #133

gorkys avatar Jun 30 '20 06:06 gorkys