Closed Bug 707132 Opened 8 years ago Closed 8 years ago

Meta-viewport size is slightly incorrect

Categories

(Firefox for Android :: General, defect)

All
Android
defect
Not set

Tracking

()

VERIFIED FIXED

People

(Reporter: kats, Assigned: kats)

References

()

Details

Attachments

(1 file)

The current meta-viewport code (introduced in bug 694901) uses the physical screen size instead of the visible area dimensions when calculating viewport. This results in slightly-off coordinates when jumping to anchors and jumping to specific scroll coordinates. This can be seen by loading http://people.mozilla.org/~nhirata/html_tp/jumptag.html on the Galaxy Tab (portrait orientation) and clicking on the "Go to Bottom" and "Go to Top" links. The jump to bottom doesn't go all the way to the bottom - it scrolls to the point where the bottom of the page would be visible if the bottom Android status bar weren't present. The same applies for the jump to top.
Attachment #578590 - Flags: review?(mbrubeck) → review+
https://hg.mozilla.org/projects/birch/rev/786a73974839
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Verified fixed on: 
Nightly 13.0a1(2012-03-04)
Device: Samsung Galaxy Tab
OS: Android 3.1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.