UIWebView + Resizable iPhone Simulator = Incorrect Viewport Width

Originator:timothy.broder
Number:rdar://17569454 Date Originated:06-Jul-2014 10:34 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Beta 2
Classification:UI/Usability Reproducible:Always
 
This is a duplicate of rdar://17564857

UIWebView, when used in conjuction with the Resizable iPhone Simulator, uses an improper viewport width.
 
It uses the width returned from [UIScreen mainScreen].bounds.size.width, which is vastly different from the actual width of the application window.
 
Try running this sample app in the Resizable iPhone simulator to see what I mean.
 
https://www.dropbox.com/sh/pmgr6gu638l77ij/AAAZcJSUmUGA7iRav0YS5gPsa
 
Marco.org is a responsize site, but it is rendering improperly in this setup.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!