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

Ability to reset inner `width`, `height` to `'auto'`

Open NamesMT opened this issue 10 months ago • 3 comments

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.

NamesMT avatar Apr 14 '24 08:04 NamesMT

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.

NamesMT avatar Apr 14 '24 09:04 NamesMT

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

BornInDream avatar Aug 22 '24 01:08 BornInDream

Have you solved this problem now? How was it resolved?

BornInDream avatar Aug 22 '24 01:08 BornInDream