Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323129 - [ipad] Fix relayouting on orientation change
Summary: [ipad] Fix relayouting on orientation change
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.4 M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 323032
  Show dependency tree
 
Reported: 2010-08-19 07:41 EDT by Tim Buschtoens CLA
Modified: 2010-08-26 10:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Buschtoens CLA 2010-08-19 07:41:09 EDT
When in vertical-mode, iPad automatically zooms out of any html-document (i.e. below a 1-1 pixel-mapping) and reports a greater width/height than the display actually has. This makes the application unusable unless zoomed in manually, in which case the user has to scroll around as the layout is still based on the reported size. 

Fixing this should also solve the problem of bad relayouting when changing from portrait to landscape orientation.
Comment 1 Tim Buschtoens CLA 2010-08-26 06:35:15 EDT
Even when zoom is forced to e at least 1:1, the relayout on orientation change is broken because incorrect width/heigh values are reported to the server.
Comment 2 Tim Buschtoens CLA 2010-08-26 10:49:51 EDT
Fixed in CVS HEAD.

Fixed reporting of width/height by changing code in qx.html.Window and rwt-index.html to use documentElement.clientWidth/height instead of window.innerWidth/height. 

The minimum zoom-factor now is set to 1.0 (using the "viewport" meta-tag), meaning that even in vertical orientation, the applications width matches that of the screen. 

I was unable to solve the problem that when changing the orientation from vertical to horizontal, the browser zooms in a bit. I experimented quite a bit, (for example with the viewport meta-tag), but it seems impossible to reset the zoom programatically. (It is detectable though).