[jira] [Commented] (CB-4940) iOS7 Keyboard Appearance Resizes View Frame

2013-10-28 Thread Rafael Schettino (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806981#comment-13806981
 ] 

Rafael Schettino commented on CB-4940:
--

I fixed this issue on my project by javascript.
On index.html, I added onResize function on the body tag:
{code:xml}

{code}
On my global script file, I added this code:
{code:title=Bar.javaScript}
function onResize(){
var ios7 = (device.platform == 'iOS' && parseInt(device.version) >= 7);
if (ios7){
var height = $('body').height();
if (height < 350){ // adjust this height value conforms to your 
layout
$('.myBottomMenu').hide();
}
else {
$('.myBottomMenu').show();
}
}
}
{code}

> iOS7 Keyboard Appearance Resizes View Frame
> ---
>
> Key: CB-4940
> URL: https://issues.apache.org/jira/browse/CB-4940
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 3.0.0
> Environment: XCode 5, iOS 7, Phonegap 3, Sencha Touch 2.1
>Reporter: Brad Pritchard
>Assignee: Andrew Grieve
> Attachments: iOS Simulator Screen shot Sep 27, 2013 2.47.47 PM.png
>
>
> This is a similar issue to CB-3020, albeit slightly different.
> Our situation is this: we have a PhoneGap 3.0 project, using Sencha Touch as 
> the view framework. Our views are housed within a Sencha Touch TabPanel, 
> which shows tabs docked at the bottom of the viewport.
> Since we do not want the screen to shrink, we are setting KeyboardShrinksView 
> to false in our config.xml.
> When an input receives focus, we are seeing that iOS 7 resizes the viewport 
> to be the size of the screen minus the height of the keyboard. Since the 
> TabPanel is absolutely positioned with a bottom of 0, the tabs are fixed 
> right above the keyboard.
> We would like the webView to remain the same size, and the focused input to 
> scroll into view when clicked. The assumption here would be that either:
> # The viewport needs to be re-expanded after the keyboard shows to get it 
> back to the height of the screen (and thus pushing the tabs "below" the 
> keyboard), or
> # The webView and/or scrollView need to be manipulated after the keyboard 
> shows, so that the content of the app (namely the TabPanel) scrolls off the 
> bottom of the shrinked viewport, and thus out of the way.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-4862) ios 7 keyboard resizes the page even with KeyboardShrinksView set to false

2013-10-28 Thread Rafael Schettino (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806978#comment-13806978
 ] 

Rafael Schettino commented on CB-4862:
--

I fixed this issue on my project by javascript.
On index.html, I added onResize function on the body tag:
{code:xml}

{code}
On my global script file, I added this code:
{code:title=Bar.javaScript}
function onResize(){
var ios7 = (device.platform == 'iOS' && parseInt(device.version) >= 7);
if (ios7){
var height = $('body').height();
if (height < 350){ // adjust this height value conforms to your 
layout
$('.myBottomMenu').hide();
}
else {
$('.myBottomMenu').show();
}
}
}
{code}

> ios 7 keyboard resizes the page even with KeyboardShrinksView set to false
> --
>
> Key: CB-4862
> URL: https://issues.apache.org/jira/browse/CB-4862
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 2.8.0
> Environment: ipod 5th gen ios 7 and simulator for ios 7
>Reporter: Jake Williams
>Assignee: Shazron Abdullah
>  Labels: ios7
>
> We have a page with a fixed footer and some inputs.  In previous ios versions 
> the page would be pushed up when an input was focused and the keyboard came 
> up.  In ios 7, the page height is reduced to the available space after the 
> keyboard appears and the footer covers the input (depends on the position of 
> the footer, but it does happen sometimes).  There is also a problem where the 
> input could be beneath the keyboard if you have multiple inputs and you use 
> next/previous to move between them.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-4940) iOS7 Keyboard Appearance Resizes View Frame

2013-10-28 Thread Rafael Schettino (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806905#comment-13806905
 ] 

Rafael Schettino commented on CB-4940:
--

I've same problem using Cordova 3.1. I setted my KeyBoardShrinksView=false and 
changed my viewport metatag, but the problem continues.
My toolbox is on the bottom (position:absolute, bottom:0px). When the 
softKeyboard gets up, my toolbox gets up together.
Cordova throws any event when the keyboard is opened and closed?

> iOS7 Keyboard Appearance Resizes View Frame
> ---
>
> Key: CB-4940
> URL: https://issues.apache.org/jira/browse/CB-4940
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 3.0.0
> Environment: XCode 5, iOS 7, Phonegap 3, Sencha Touch 2.1
>Reporter: Brad Pritchard
> Attachments: iOS Simulator Screen shot Sep 27, 2013 2.47.47 PM.png
>
>
> This is a similar issue to CB-3020, albeit slightly different.
> Our situation is this: we have a PhoneGap 3.0 project, using Sencha Touch as 
> the view framework. Our views are housed within a Sencha Touch TabPanel, 
> which shows tabs docked at the bottom of the viewport.
> Since we do not want the screen to shrink, we are setting KeyboardShrinksView 
> to false in our config.xml.
> When an input receives focus, we are seeing that iOS 7 resizes the viewport 
> to be the size of the screen minus the height of the keyboard. Since the 
> TabPanel is absolutely positioned with a bottom of 0, the tabs are fixed 
> right above the keyboard.
> We would like the webView to remain the same size, and the focused input to 
> scroll into view when clicked. The assumption here would be that either:
> # The viewport needs to be re-expanded after the keyboard shows to get it 
> back to the height of the screen (and thus pushing the tabs "below" the 
> keyboard), or
> # The webView and/or scrollView need to be manipulated after the keyboard 
> shows, so that the content of the app (namely the TabPanel) scrolls off the 
> bottom of the shrinked viewport, and thus out of the way.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-4862) ios 7 keyboard resizes the page even with KeyboardShrinksView set to false

2013-10-28 Thread Rafael Schettino (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806896#comment-13806896
 ] 

Rafael Schettino commented on CB-4862:
--

I've same problem using Cordova 3.1. I setted my KeyBoardShrinksView=false and 
changed my viewport metatag, but the problem continues.
My toolbox is on the bottom (position:absolute, bottom:0px). When the 
softKeyboard gets up, my toolbox gets up together.
Cordova throws any event when the keyboard is opened and closed?

> ios 7 keyboard resizes the page even with KeyboardShrinksView set to false
> --
>
> Key: CB-4862
> URL: https://issues.apache.org/jira/browse/CB-4862
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 2.8.0
> Environment: ipod 5th gen ios 7 and simulator for ios 7
>Reporter: Jake Williams
>Assignee: Shazron Abdullah
>  Labels: ios7
>
> We have a page with a fixed footer and some inputs.  In previous ios versions 
> the page would be pushed up when an input was focused and the keyboard came 
> up.  In ios 7, the page height is reduced to the available space after the 
> keyboard appears and the footer covers the input (depends on the position of 
> the footer, but it does happen sometimes).  There is also a problem where the 
> input could be beneath the keyboard if you have multiple inputs and you use 
> next/previous to move between them.



--
This message was sent by Atlassian JIRA
(v6.1#6144)