Hi All,
In Detail :-
My Screen has a header and scrollable content with text fields. On Click of text filed, Ionic Popup (Sample code attached) gets invoked.
If I try to invoke keypad by clicking on the input field of the popup. My Header will moves up and can’t be visible. Is there any soultion to avoid moving the header up?
This issue is seen only on iOS, Android is working fine.
Here is the sample code attached.
Html Code:-
<ion-view title="Dashboard">
<ion-content class="has-header padding">
<h1>Dash</h1>
<button ng-click="showPopup()">Header</button>
</ion-content>
</ion-view>
Controller code :
$scope.showPopup = function() {
$scope.data = {}
// An elaborate, custom popup
var myPopup = $ionicPopup.show({
template: '<input type="password" ng-model="data.wifi">',
title: 'Enter Wi-Fi Password',
subTitle: 'Please use normal things',
scope: $scope,
buttons: [
{ text: 'Cancel' },
{
text: '<b>Save</b>',
type: 'button-positive',
onTap: function(e) {
if (!$scope.data.wifi) {
//don't allow the user to close unless he enters wifi password
e.preventDefault();
} else {
return $scope.data.wifi;
}
}
},
]
});
myPopup.then(function(res) {
console.log('Tapped!', res);
});
};