vue-draggable-resizable
vue-draggable-resizable copied to clipboard
Ability to reset inner `width`, `height` to `'auto'`
There currently is no way to reset the inner width/height
and widthTouched/heightTouched
,
I.e: no way to make the component automatically scale again, forcing through css works look-wise, but will bugs the parent bound calculation.
Theres actually a "parent" issue that the inner width/height is not recomputed if the item inside could change it's size dynamically, so even if the current style is "auto", parent bound calculation is bugged after the item inside change it's size.
I encountered the same problem as you. The height of my outer div is dynamically calculated, and when the height is updated twice, there will be a situation where the width and height are obtained as NaN
Have you solved this problem now? How was it resolved?