vue-draggable-resizable
vue-draggable-resizable copied to clipboard
Increase parent height programatically does not affect elements
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.
Any feedback?
See #133