Skip to content

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