-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misc(emulation): Use Nexus 5X emulation real screen size #6932
Conversation
There is a lot of |
https://cs.chromium.org/chromium/src/third_party/blink/public/web/web_device_emulation_params.h?sq=package:chromium&g=0&l=23-33 suggests that width/height is the viewport which can be scrolled maybe using view_position? Not sure either 🤷♂️ Either way, copying what frontend does SGTM :) This is probably going to have some unexpected ramifications down the line. I still think it needs to be done obviously since we're claiming Nexus 5X and the right aspect ratio should be used for it 😃, just trying to think of what could happen.
|
Yeah, I'm not relying on the default emulation settings. Can't think of anything else that would change (as long as the page doesn't render differently based on the changed window height). |
DZL, do a barrel roll! |
DZL is done! Go check it out http://lh-dzl-6932.surge.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the impl side
I'll defer to others on the impact on metrics :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too!
For DZL changes, there's just no way this window size is responsible for that drastic TTI shift. Even if it was, people will just have to deal it's a major version bump anyhow 😆
More details on what we gotta do about this persistent problem to come 😞
Summary
I'll bite and try to adjust this. I just changed the emulation heights to 660. I wasn't sure if
height
should be 732 and thenscreenHeight
should be 660 or the other way around? Docs didn't explain which was which, so I just made them both 660 for now.When changing the emulated device in the frontend it only sends a screenWidth and screenHeight with width & height set to 0:
Note the 660 is derived on the frontend from: 732px - 24px (top bar) - 48px (bottom bar) = 660px
Related Issues/PRs
fixes: #6615