vdolek / angular-resize-event

Angular directive for detecting changes of an element size.
MIT License
169 stars 63 forks source link

angular-resize-event for angular version 11 not working #51

Open netra20 opened 2 years ago

netra20 commented 2 years ago

Hi,

I want to resize a div and get the resized width and height. I tried using the version 2.1.0 for Angular version 11 as mentioned here https://www.npmjs.com/package/angular-resize-event in readme file. since my project we are using Angular version 11. But when I used an event <div (resized)="onResized($event)"> like this its not working as expected. In the browser, div is automatically shrinking instead it should resize only on div resize by dragging. I am using the below style for div resize:

resize:both; overflow: auto;

Could you pleas help on this as early as possible.

Thanks & Regards, Netravati Sutar