Block IPAD keyboard from overcrowring web pages

It looks like the way the Safari keyboard works on the iPad…

>If the web page initially reaches the bottom of the screen, when the keyboard appears, it will never Will scroll to the bottom of the webpage.
>If the webpage does not initially reach the bottom of the screen and the text field with focus is more than half of the screen, the webpage will be scrolled so that the current text field is now in the middle of the screen and does not care about displaying the original webpage The area below.

Basically I want a webpage that does not fill the screen vertically, but I don’t want the keyboard to scroll the screen to the bottom of the webpage, because this hides the top of the webpage, but shows the bottom of the webpage The blank area of ​​the device.

In portrait mode on the iPad, even if the text field is active and the keyboard is displayed, the following webpage is always displayed:
http://sky-walker.net/temp/ ipad/a

But when you view the webpage in landscape mode and select the bottom text field, the webpage scrolls so that the bottom text field is in the middle of the screen. I want it to be at the bottom of the screen.

p>

http://sky-walker.net/temp/ipad/b

In landscape mode, the previous link fills the entire screen, so if you click on the bottom text field (after scrolling) , When the keyboard is visible instead of scrolling the screen until the text field is in the middle of the screen, the text field will be displayed at the bottom of the screen.

In portrait mode, the previous link will not fill the screen initially, so if you click Click on the bottom text field (to make the keyboard appear) and it will scroll up so that it is halfway on the screen.

http://sky-walker.net/temp/ipad/d
The final link is also It will fill the entire screen in portrait mode, when the bottom text field is selected, when the keyboard becomes visible, it will not scroll to the bottom of the web page.

Maybe what it is doing when the web page does not fill the screen is It remembers the blank area at the bottom, and then it scrolls up (hiding the top) when the keyboard is visible. I want it to forget the blank area at the bottom when the keyboard appears.

I encountered a very similar problem. This is my job.

I subscribe to UIKeyboardWillShowNotification to get the keyboard size and then when scrolling the view Scroll up beyond the keyboard height and then I set the scroll offset to the keyboard height.

It looks like the Safari keyboard works like this on the iPad… < p>

>If the webpage initially reaches the bottom of the screen, when the keyboard appears, it will never scroll to the bottom of the webpage.
>If the webpage does not initially reach the bottom of the screen and the text field with focus exceeds the screen Half of the page, scroll the webpage so that the current text field is now in the middle of the screen, and don’t care about displaying the area below the original webpage.

Basically I want a webpage that does not fill the screen vertically, but I don’t want the keyboard to scroll the screen to the bottom of the webpage, because this hides the top of the webpage, but instead shows the blank area below the webpage.

In portrait mode on the iPad, even if the text field is active And the keyboard display always shows the following webpage:
http://sky-walker.net/temp/ipad/a

But when you view the webpage in landscape mode and select the bottom text field , The webpage will scroll so that the bottom text field is in the middle of the screen. I want it to be at the bottom of the screen.

http://sky-walker.net/temp/ipad/b

< p>In landscape mode, the previous link fills the entire screen, so if you click on the bottom text field (after scrolling), the text field will be displayed at the bottom of the screen when the keyboard is visible instead of the screen scrolling until the text field is in the middle of the screen. /p>

In portrait mode, the previous link will not fill the screen initially, so if you click on the bottom text field (to make the keyboard appear), it will scroll up so that it is halfway through the screen.

http://sky-walker.net/temp/ipad/d
The final link will also fill the entire screen in portrait mode, when the bottom text field is selected, when the keyboard becomes visible, it will not Scroll to the bottom of the webpage.

Maybe what it is doing when the webpage does not fill the screen is that it remembers the blank area at the bottom, and then when the keyboard is visible it scrolls up (hiding the top). I want it to be at Forget the blank area at the bottom when the keyboard appears.

I encountered a very similar problem. This is my job.

< p>I subscribe to UIKeyboardWillShowNotification to get the keyboard size and then when the scroll view scrolls up beyond the keyboard height, then I set the scroll offset to the keyboard height.

Leave a Comment

Your email address will not be published.