Skip to content
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

Remove setting special viewport in desktop mode. JB#57542 #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrew-korolev-omp
Copy link

This is a part of fixes for JB#57542, another part you can find here: sailfishos/sailfish-components-webview#153
As for this part, we found that when switching to desktop mode gecko changes its viewport to a value that corresponds the DevicePixelRatio (DPR) value of ~2.1, regardless of what the DPI value of screen is. In the other part of fixes we implemented mechanism that calculates DPR value depending of screen DPI, and for example for 1920x1200 10 inch screen the DPR value will be 1.5. So, after we switch to desktop mode, the DPR value increases to ~2.1 and the elements on the page become bigger, than in mobile version. But many desktop web-pages are designed, on the contrary, for lower DPI values (on desktop it is usually 1.0) and smaller element size. So we suggest to stick to the middle option and leave the DPR and viewport unchanged when switching to desktop mode, so as our colleagues from Yandex browser for Android (100M+ installs) do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant