1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00
phorge-phorge/webroot/rsrc
epriestley dbf1d0d721 Improve reliability of detecting small devices when loading Differential changesets
Summary: Ref T10229. Fixes T9969. We make a decision about 1up vs 2up pretty early, and sometimes the viewport size reads as larger than the device, so we incorrectly select 2up when the proper setting would be 1up.

Test Plan:
I can reproduce this by, e.g., reloading a lot on an iPhone 4s in iOS Simulator running iOS 9.2. Sometimes it picks 2-up. I added logging to show that the viewport dimension read was the issue.

After this change, it always selects 1-up (`window.screen.availWidth` is defined and sensible on the device).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9969, T10229

Differential Revision: https://secure.phabricator.com/D15135
2016-01-29 06:55:22 -08:00
..
css Add some additional padding before footer on profiles 2016-01-29 02:31:31 +00:00
externals Hide the autocompleter intelligently when you ignore it and keep typing 2016-01-16 14:41:43 -08:00
favicons Add mask-icon for Safari pinned tab 2015-11-22 13:04:06 -08:00
image Remove defunt project image choices 2016-01-19 08:50:59 -08:00
js Improve reliability of detecting small devices when loading Differential changesets 2016-01-29 06:55:22 -08:00