Issue metadata
Sign in to add a comment
|
Windows become narrow in landscape orientation after using convertible in portrait orientation |
||||||||||||||||||||||||
Issue descriptionChrome 58.0.3029.78 OS 9334.52.0 beta-channel caroline We mess up window bounds when switching between portrait orientation in tablet mode and laptop mode. I filed feedback about this a while back at http://feedback/#/Report/55031445799; is it tracked anywhere? Here are the repro steps that I wrote earlier: --- 1. Start out with a single non-maximized browser window (flush with the shelf, but with maybe 5-10% of space between it and the sides and top the display). 2. Fold the device into tablet mode, still in landscape orientation. 3. Rotate 90 degrees to portrait orientation. 4. Unfold the device to clamshell, still keeping it on its side. 5. Rotate 90 degrees back to landscape orientation. Interestingly, we're still using the tablet UI after 4 -- we don't exit it until I rotate the device back to landscape. When the laptop UI is restored, the window is narrow; presumably it's preserving its width from portrait mode. --- Jonathan wrote this in email at the time: "For the window bounds we restore them to their previous state from before entering tablet mode. So a previously maximized window will stay as such, and one which was a different bounds will be restored to that size. In the screenshot the width of the window (!600px) matches the width it would of had in portrait mode (1600px.) Derat@ do you recall what state your window had been in before converting into a tablet? ... So the bounds issue you are seeing is a regression as oshima@ suspected."
,
Apr 21 2017
The reason we were don't rotate back in step 4 is because we detect the hinge angle by calculating the angle between accelerometer readings from the screen and keyboard. When vertical these two accelerometer readings are parallel, both aligned with the hinge. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by osh...@chromium.org
, Apr 21 2017Status: Duplicate (was: Untriaged)