Closed
Bug 528940
Opened 17 years ago
Closed 7 years ago
Zoom to page needs better limits
Categories
(Firefox for Android Graveyard :: Panning/Zooming, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mfinkle, Unassigned)
Details
Attachments
(1 file)
|
2.07 KB,
patch
|
stechz
:
review-
|
Details | Diff | Splinter Review |
When we call getZoomForPage, we use the same limits on the zoom level as we do for manual increases / decreases. This mean the min zoom level is 0.2, which can be very small.
A recent posting to planet.mozilla.org resulted in a getZoomForPage of 0.3116, which means the screen was 2567px and the website was too small to read.
0.2 might be fine for manual zooming limits, but not for getZoomForPage. Given, the typical web page is around 1024px and the iPhone assumes 980px default width, we should limit getZoomForPage to a zoom level that limits Fennec to a 1024px page width. This means we need to base the zoom level limit on window width, not just an arbitrary zoom level. For example:
minZoom = window.innerWidth / 1024.0
| Reporter | ||
Comment 1•17 years ago
|
||
Patch limists zoom to window.innerWidth / 1024
Assignee: nobody → mark.finkle
Attachment #412598 -
Flags: review?(webapps)
Comment 2•17 years ago
|
||
For large sites like pmo, it will take time to pan over to the right controls by default. I thought this was why we weren't setting default zoom level to 1. Honestly, I think a default ZL of 1 is a more elegant fix to this problem, and its disadvantages are very similar to having a larger min zoom level.
The patch is fine, though one nit: use Math.max.
Comment 3•16 years ago
|
||
this is the case with planet today (20091203) with the 1.9.2 nightly on my n810.
Updated•16 years ago
|
Attachment #412598 -
Flags: review?(webapps) → review-
Updated•16 years ago
|
Component: General → Panning/Zooming
| Reporter | ||
Updated•10 years ago
|
Assignee: mark.finkle → nobody
Comment 4•7 years ago
|
||
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•