Closed Bug 1701597 Opened 3 years ago Closed 3 years ago

when zooming to a rect horizontally center it

Categories

(Core :: Panning and Zooming, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

Details

Attachments

(2 files)

No description provided.

We already vertically center the rect, but not horizontally. We generally try to zoom to the width of an element already, so the width of the zoom to rect will usually occupy the whole viewport and hence be centered. But if the width of the element is too small so that we can't zoom in so that it fills the viewport it will end up left aligned. This doesn't come up very often on mobile, but happens more so on desktop.

Attached file Bug 1701597. Add test. r?botond (deleted) —
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/05ae63ecb3e5
When zooming to a rect horizontally center it. r=botond
https://hg.mozilla.org/integration/autoland/rev/4319850a77b2
Add test. r=botond
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: