angular-elastic icon indicating copy to clipboard operation
angular-elastic copied to clipboard

Enable updating border and height of the textarea when directive used in Modal Window.

Open mdemblani opened this issue 9 years ago • 0 comments

When the directive is used in a Modal Window, angular-material md-dialog or ui-bootstrap modal dialog, the textarea is already present without a value, due to which the height, border calculated are incorrect, furthermore, on updating the ng-model, i.e. when the user starts typing, the textarea behaves inappropriately. To solve this, the code responsible for calculating the textarea height and border is moved into a function which then can be called when an event 'elastic:recalculate' event is fired.

mdemblani avatar Aug 16 '16 08:08 mdemblani