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

DevicePixelRatio or Other method to set scaling manually #22

Open
llelectronics opened this issue Jan 3, 2015 · 0 comments
Open

DevicePixelRatio or Other method to set scaling manually #22

llelectronics opened this issue Jan 3, 2015 · 0 comments

Comments

@llelectronics
Copy link

I noticed on devices with smaller screens just like the Jolla the devicePixelRatio defaults to 1.0 which makes the fonts and overall webpages super small barely readable. The sailfish-browser uses devicePixelRatio 1.5.
There is no option to set the devicePixelRatio in QML.
I wrote a little patch to make it possible and called the thing deviceScaleFactor (actually it is in the cpp part but not exposed to qml)

It would fix this problem also reported here: https://together.jolla.com/question/1271/webview-scale-is-too-small/
and allows more flexibility when it comes to mobile apps.

Patch:
https://paste.kde.org/pjejyakjj

Feel free to improve it if necessary :)

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

No branches or pull requests

1 participant