Closed
Bug 475997
Opened 17 years ago
Closed 16 years ago
make zoomToPage use viewport width
Categories
(Firefox for Android Graveyard :: Panning/Zooming, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: taras.mozilla, Assigned: taras.mozilla)
References
Details
Attachments
(1 file, 2 obsolete files)
|
2.19 KB,
patch
|
Gavin
:
review-
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•17 years ago
|
||
Assignee: nobody → tglek
| Assignee | ||
Comment 2•17 years ago
|
||
Note http://hg.mozilla.org/mobile-browser/rev/d9deda3eb847 is not this patch. That commit message was supposed to refer to bug 468869
| Assignee | ||
Comment 3•17 years ago
|
||
I think this zooming method is much nicer in terms of usability compared to what's currently in Fennec. This eliminates horizontal scrolling that had to be done on every single page before(including firstrun)
Attachment #359565 -
Attachment is obsolete: true
Attachment #360785 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 4•17 years ago
|
||
Attachment #360785 -
Attachment is obsolete: true
Attachment #360790 -
Flags: review?(gavin.sharp)
Attachment #360785 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 5•17 years ago
|
||
I'd like to clarify that this patch is based on the assumption that the canvas width should not equal the device screen width. I find this easier to think about when surfing on a portrait screen which requires lots of panning sideways.
| Assignee | ||
Comment 6•17 years ago
|
||
Comment on attachment 360790 [details] [diff] [review]
make use of viewportVisibleRect
I think Gavin objects to this patch because in his opinion the canvas should shrink down to the page size.
Personally I think the canvas should always be bigger than the screen in x&y directions for performance reasons. I claim that webpages should always zoom relative to the visible area.
Attachment #360790 -
Flags: review?(pavlov)
Comment 7•17 years ago
|
||
My understanding is that we both agree that ideally, the canvas would be relative to the screen size. We don't necessarily agree that the multiplier should be 1 in the width case (i.e. canvas the same width as the window), but that's somewhat orthogonal to this bug.
That patch trades off the need to scroll to view the entire page if the window is smaller than the viewport with the appearance of a white bar along the page edge if you do. I think it would result in a more visibly broken state by default, so I don't think we should take it as a stopgap measure.
| Assignee | ||
Comment 8•17 years ago
|
||
(In reply to comment #7)
> That patch trades off the need to scroll to view the entire page if the window
> is smaller than the viewport with the appearance of a white bar along the page
> edge if you do. I think it would result in a more visibly broken state by
> default, so I don't think we should take it as a stopgap measure.
Just to clarify that is not a new bug and will occur when manually zooming. I personally think that for now it's better to have empty space outside of the viewport then suffect the indignity of a clipped webpage :)
Gavin, how hard is it fix that bug in the widgetstack?
Comment 9•17 years ago
|
||
(In reply to comment #8)
> Just to clarify that is not a new bug and will occur when manually zooming.
When manually zooming *out* from the default zoom, which occurs much less frequently, and doesn't really have a valid use case.
Comment 10•17 years ago
|
||
Comment on attachment 360790 [details] [diff] [review]
make use of viewportVisibleRect
I don't think we should take something like this until bug 479753 is fixed (and depending on how we fix it, this might not be necessary).
Attachment #360790 -
Flags: review?(gavin.sharp) → review-
Updated•16 years ago
|
Flags: wanted-fennec1.0?
Updated•16 years ago
|
Flags: wanted-fennec1.0? → wanted-fennec1.0+
Updated•16 years ago
|
Status: NEW → ASSIGNED
Updated•16 years ago
|
Component: General → Panning/Zooming
Comment 11•16 years ago
|
||
These patches no longer apply; the functionality changes have been implemented since this bug was opened.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•