Chris Drackett
Chris Drackett

Reputation: 1327

stop keyboard from shifting app up and enabling scroll in IOS 7/8

We have an app that is a fixed width and height and does not allow the user to scroll. As part of this app we have a navbar that is fixed to the screen under the status area. This all works great.

The problem is that when a keyboard is shown, it shifts our app window up to make room for the keyboard. At this point its possible to scroll our app and the titlebar which should be fixed to the top is no longer on screen.

Ideally the keyboard would still show, but our app window would resize so its not as tall, but items fixed to the top are still fixed to the top. also, you should not be able to scroll the window at this point.

Upvotes: 3

Views: 1646

Answers (1)

Chris Drackett
Chris Drackett

Reputation: 1327

So as Sani mentioned in a comment the Iconic keyboard plugin does in fact do what I'm looking for:

https://github.com/driftyco/ionic-plugins-keyboard

using:

cordova.plugins.Keyboard.disableScroll(true); cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

Upvotes: 4

Related Questions