UbuntuWebView doesn't regard GRID_UNIT_PX
Bug #1249333 reported by
Michael Zanetti
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app |
Invalid
|
Medium
|
Unassigned | ||
webbrowser-app (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
On High-DPI screens like the Apple Retina Display all Ubuntu Components and apps adjust nicely to the DPI by setting the GRID_UNIT_PX env variable. One exception to this is the UbuntuWebView which loads websites very, very tiny on such displays, regardless of the used GRID_UNIT_PX value.
The WebView has it's own env variable, QTWEBKIT_DPR, which allows adjusting it's resolution. However, this isn't obvious to users and especially on desktop systems QTWEBKIT_DPR is mostly not set to anything.
Couldn't we initialize QTWEBKIT_DPR to a sane value calculated from the GRID_UNIT_PX value in case it is not explicitly set?
Changed in webbrowser-app: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in webbrowser-app (Ubuntu): | |
assignee: | Michael Zanetti (mzanetti) → nobody |
status: | New → Confirmed |
To post a comment you must log in.
From our IRC discussion:
<mzanetti> I'm using 20 px/gu and it seems a DPR value of 4 fits nicely
on the apple retina display that is
On my galaxy Nexus, GRID_UNIT_PX=18 and QTWEBKIT_DPR=2.0
So unfortunately there doesn’t seem to be a direct proportional relationship between GRID_UNIT_PX and QTWEBKIT_DPR.
This very probably depends on the density of the display.