diff --git a/package.json b/package.json index b310d06..61c988d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-autosize-app", - "version": "1.8.0-next", + "version": "1.8.0", "homepage": "https://chrum.it/pages/ngx-autosize", "description": "Directive that automatically adjusts textarea height to fit content", "repository": { diff --git a/projects/autosize/package.json b/projects/autosize/package.json index 7406b4d..d7690d1 100644 --- a/projects/autosize/package.json +++ b/projects/autosize/package.json @@ -1,6 +1,6 @@ { "name": "ngx-autosize", - "version": "1.8.0-next", + "version": "1.8.0", "homepage": "https://chrum.it/pages/ngx-autosize", "description": "Directive that automatically adjusts textarea height to fit content", "repository": { diff --git a/src/app/app.component.html b/src/app/app.component.html index f7c4f64..add7447 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -2,14 +2,16 @@

Regular textarea

- +

Min rows

- +

diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1bc3d65..34c749a 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -22,7 +22,7 @@ Text area should come back to its original form :) export class AppComponent implements OnInit { public longText = longText; public resetableContent = resetExplanation; - public minRows = 3; + public minRows = 1; public maxRows = 4; public onlyGrow = true; public useImportant = true; @@ -57,4 +57,8 @@ export class AppComponent implements OnInit { resetArbitraryExample() { this.resetableContent = resetExplanation; } + + onResized(newHeight) { + console.log(newHeight); + } }