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)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mfinkle, Unassigned)

Details

Attachments

(1 file)

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
Attached patch patch — — Splinter Review
Patch limists zoom to window.innerWidth / 1024
Assignee: nobody → mark.finkle
Attachment #412598 - Flags: review?(webapps)
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.
this is the case with planet today (20091203) with the 1.9.2 nightly on my n810.
Attachment #412598 - Flags: review?(webapps) → review-
Component: General → Panning/Zooming
Assignee: mark.finkle → nobody
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.

Attachment

General

Created:
Updated:
Size: