xieziyu / angular2-draggable

Angular directive (for version >= 2.x ) that makes the DOM element draggable and resizable

Home Page:https://xieziyu.github.io/angular2-draggable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rzAspectRatio does not work on dynamically added div

stjjelic opened this issue · comments

As stated in the title, let's say that we have a div that will conditionally render and that div has [rzAspectRatio]="true".
Once the condition is met and the div is rendered, resize won't hold the aspect ratio. If I remove the condition and render div onInit, resize works as expected.