Last modified: 2014-08-06 09:19:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70683, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68683 - [iOS] Rotating device midway through a section will return you to the top of that section
[iOS] Rotating device midway through a section will return you to the top of ...
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
iOS App (Other open bugs)
Beta
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-27 16:39 UTC by brett ohland
Modified: 2014-08-06 09:19 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: iOS 7.x
Assignee Huggle Beta Tester: ---


Attachments

Description brett ohland 2014-07-27 16:39:05 UTC
App doesn't remember screen position after rotating.

Scroll midway into a long section. Rotate the device into landscape, the screen will scroll you to the top of that section. Same will happen if you rotate the device back into portrait.
Comment 1 Brion Vibber 2014-07-29 18:14:01 UTC
So this behavior is believed to be better than the default WebView behavior of sending you to some other semi-random location in the document, but it's still not ideal.

Presumably what is desired is to keep you with approximately the same elements at the top of the screen after the rotate/resize. I had some old experimental code to try this but it was pretty hacky, needs to be reconsidered.

(Another alternative is to fix the viewport width instead of the viewport scale, which would make landscape show text bigger, and thus show much less material on the screen at once. I'm pretty sure we don't want to do that, and want to retain standard size on rotation.)
Comment 2 Gerrit Notification Bot 2014-07-31 00:05:54 UTC
Change 150740 had a related patch set uploaded by Brion VIBBER:
Save scroll position across rotation better

https://gerrit.wikimedia.org/r/150740
Comment 3 Gerrit Notification Bot 2014-08-01 16:24:29 UTC
Change 150740 merged by Mhurd:
Save scroll position across rotation better

https://gerrit.wikimedia.org/r/150740
Comment 4 Brion Vibber 2014-08-06 09:19:38 UTC
This merged, and seems to work pretty well. Yay!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links