Predefined functionality of your phone: . When we focus on any input, it automatically scrolls this input on the mobile device.
Problem: It doesn’t work in my ionic application, due to the horizontal scrolling it is also there, so when I click on the input to the mobile device, it does not automatically scroll to this input and the input is hidden behind the keyboard.
I tried delegate-handlefor this, but it does not work.
Plunker for the same
HTML
<ion-scroll direction="xy" class="scroll" delegate-handle="nomineeDiv">
<div class="table-row" ng-repeat="data in nominee">
<form name="data.formName">
<input type="text" name="something"/>
</form>
</div>
</ion-scroll>
Controller
$ionicScrollDelegate.$getByHandle('nomineeDiv').scrollBy(580, 140, true);
source
share