Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Unable get an input type=text to center on the screen

Hello! On page Show event add next JS

code$('meta[name="viewport"]').attr('content', 'initial-scale=1.0, maximum-scale=1.0, user-scalable=no, height=device-width, width=device-height');/code

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

Unable get an input type=text to center on the screen

Hi Marina

That doesn't work

I also tried putting it in the Phonegap Childbrowser Close event, which I know fires when the childbrowser window closes, but still no good

Its strange as it does not happen on my android tablet only the Ipad

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Unable get an input type=text to center on the screen

Hi. It's a bug. Will be fixed soon.

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

Unable get an input type=text to center on the screen

Hi Katya

I found a bug report in Apache Cordova re this exact issue if that helps

https://issues.apache.org/jira/browse...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Unable get an input type=text to center on the screen

That's it :) thank you

Return to “Issues”