# Auto grow textarea scrolling issue

**URL:** <https://forum.ionicframework.com/t/auto-grow-textarea-scrolling-issue/29669>\
**Category:** ionic-v1\
**Created:** [July 31, 2015, 5:20pm UTC](https://forum.ionicframework.com/t/auto-grow-textarea-scrolling-issue/29669 "2015-07-31T17:20:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matanyed](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@matanyed](https://forum.ionicframework.com/u/matanyed)\
**Post date:** [July 31, 2015, 5:20pm UTC](https://forum.ionicframework.com/t/auto-grow-textarea-scrolling-issue/29669/1 "2015-07-31T17:20:58Z")

</div>

Hello I have problem with auto grow textarea.  
The auto grow textarea working very fine, the problem is the view scrolling.  
The problem happens only in ion-scroll (overflow-scroll=“false”), without ion-scroll it’s working fine.

HTML:

```
<ion-content>
    <form name="comment.form" ng-submit="submitComment()">
        <textarea ng-model="comment.data.content" auto-grow></textarea>
    </form>
</ion-content>

```

Javascript:

```
angular.module('myapp')
.directive('autoGrow', autoGrow);

autoGrow.$inject = [];

function autoGrow() {
    return {
        restrict: 'A',
        require: 'ngModel',
        scope: {
            ngModel: '='
        },
        link: function(scope, element, attr) {
            var update = function() {
                element.css("height", "auto");
                var height = element[0].scrollHeight;
                element.css("height", element[0].scrollHeight + "px");
            };
            scope.$watch('ngModel', function() {
                update();
            });
        }
    };
};

```

Video:

---

<div class="post-metadata">

**Author:** ![jhwegener](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jhwegener](https://forum.ionicframework.com/u/jhwegener)\
**Post date:** [September 1, 2016, 1:56pm UTC](https://forum.ionicframework.com/t/auto-grow-textarea-scrolling-issue/29669/2 "2016-09-01T13:56:23Z")

</div>

Hey!  
I’ve the same problem in my Ionic 1.2.1 app. Do you have a solution for this?

Cheers  
Jan-Henning
