Back to Top

IOS – Moving header and footer when open a keyboard and enter a text in search box

moving header footer issue

I was working in IOS mobile app which is using jQuery mobile and Phonegap and get issue that header and footer moving when entering text in a text box or text area.

Here, I am going to explain about to stop moved header and footer when open a keyboard and enter a text in search box IOS.

Let’s see solution for moving header and footer in IOS version.

id_textboc_addcourse is a id of textbox and .footer is a class name of footer and .topbar is Header class name.

I am going to explain here a two ways to solve this issue,but they have a little shortcoming.

Way 1: Here in this way,shortcoming is Editing text is a bit slow for ‘position’, ‘absolute’. But let’s understand code written below:

Lets understand the next code which is explained below:

Way 2: shortcoming is page margins top and bottom.

That’s it. You can check in your device.

You may like to read:

Save Image/File into sd card in Android using PhoneGap
To use JSON Response of Webservice in Phonegap Android
To restrict screen orientation in Android

Hope this article helpful ot you.As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

PHP 7 new Features at a Glance

Posted on 2 years ago

Bhumi

HTML5 Geolocation API with Example

Posted on 11 months ago

Bhumi

How to backup MySQL database in PHP

Posted on 5 years ago

Bhumi

Overview of ECMAScript 6 new Features

Updated 18 years ago

Bhumi

Getting started with Amazon Web Services

Updated 18 years ago

Bhumi

Facade implementation in Laravel

Updated 18 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi