You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew H (JIRA)" <ji...@apache.org> on 2013/11/07 22:23:17 UTC

[jira] [Updated] (CB-5314) View Bounds incorrect for iOS7 on iPad Simulator

     [ https://issues.apache.org/jira/browse/CB-5314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew H updated CB-5314:
-------------------------

    Description: 
When running my project (recently ported to cordova 3.1), the view boundary in the ipad simulator is reported to be 1216x1568 instead of 768x1024 when I target iOS 7.  This causes my html to render off of the screen.

I was able to correct by setting webView.frame dimensions equal to the mainScreen bounds in the viewWillAppear event handler in my MainViewController.  However, I feel that this is a hack that may be overriding work that cordova is doing behind the scenes.

I am not able to test on a physical device.

  was:
When running my project (recently ported to cordova 3.1), the view boundary in the ipad simulator is reported to be 1216x1568 instead of 768x1024 when I target iOS 7.  This causes my html to render off of the screen.

I was able to correct by setting webView.frame dimensions equal to the mainScreen bounds in the viewWillAppear event handler in my MainViewController.  However, I feel that this is a hack that may be overriding work that cordova is doing behind the scenes.


> View Bounds incorrect for iOS7 on iPad Simulator
> ------------------------------------------------
>
>                 Key: CB-5314
>                 URL: https://issues.apache.org/jira/browse/CB-5314
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.1.0
>            Reporter: Andrew H
>
> When running my project (recently ported to cordova 3.1), the view boundary in the ipad simulator is reported to be 1216x1568 instead of 768x1024 when I target iOS 7.  This causes my html to render off of the screen.
> I was able to correct by setting webView.frame dimensions equal to the mainScreen bounds in the viewWillAppear event handler in my MainViewController.  However, I feel that this is a hack that may be overriding work that cordova is doing behind the scenes.
> I am not able to test on a physical device.



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