Closed Bug 480637 Opened 16 years ago Closed 15 years ago

Zooming with navbar showing causes checkerboard to appear

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
fennec1.0b2

People

(Reporter: taras.mozilla, Assigned: Gavin)

References

Details

Attachments

(1 file, 2 obsolete files)

Pan such that the navbar is showing, then zoomin(F7), the rightmost part of the canvas does not get painted. I think it's because vieportVisibleRect isn't reacting to partially hidden navbar correctly. Panning fixes things.
Oops, didn't realize you'd already filed this.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Er, wait, I'm confused. How is this different than bug 480639?
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Nevermind, I can reproduce this now.
Status: REOPENED → NEW
Attached patch dirty patch to show where the problem is (obsolete) (deleted) — Splinter Review
viewportInnerBounds is not updated after a zoom and that's the cause of the drawing error. It's good on dlbClick cause the click finish by calling endKinetic who do a ws.dragStop which is the only function calling _viewportUpdate. I'm not sure if it makes sense to had a startZooming/stopZooming code to WS? I force here a ws.dragStart/ws.dragStop but it's seems a little dirty since we are not in a dragging session. Futhermore this zooming code (F7/8 or ScrollWheel only) can lead to have partially opened sidebar which is bad (bug 470989, I need to refactor it to take that into account)
(In reply to comment #4) > Created an attachment (id=384084) [details] > dirty patch to show where the problem is > > viewportInnerBounds is not updated after a zoom and that's the cause of the > drawing error. > It's good on dlbClick cause the click finish by calling endKinetic who do a > ws.dragStop which is the only function calling _viewportUpdate. Maybe we should just call the function directly > I'm not sure if it makes sense to had a startZooming/stopZooming code to WS? Probably not > I force here a ws.dragStart/ws.dragStop but it's seems a little dirty since we > are not in a dragging session. Futhermore this zooming code (F7/8 or > ScrollWheel only) can lead to have partially opened sidebar which is bad (bug > 470989, I need to refactor it to take that into account) WidgetStack.panBy kind of does the same thing, checking to make sure we are not already dragging.
Attached patch WIP (obsolete) (deleted) — Splinter Review
I _think_ this is more what we want - make sure to call _viewportUpdate from setViewportSize (which also handles calling _callViewportUpdateHandler).
Comment on attachment 384158 [details] [diff] [review] WIP r+, but remove the parts from other patches
Attachment #384158 - Flags: review+
Attached patch patch (deleted) — Splinter Review
Assignee: nobody → gavin.sharp
Attachment #384084 - Attachment is obsolete: true
Attachment #384158 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #384164 - Flags: review?(mark.finkle)
Attachment #384164 - Flags: review?(21)
Attachment #384164 - Flags: review?(mark.finkle)
Status: ASSIGNED → RESOLVED
Closed: 16 years ago15 years ago
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → B2
verified FIXED on builds: Mozilla/5.0 (X11; U; Linux armv6l; en-US; rv:1.9.3a1pre) Gecko/20090821 Fennec/1.0b3pre and Mozilla/5.0 (Macintosh; U; Intel Mac OSX 10.5; en-US; rv:1.9.2a2pre) Gecko/20090808 Fennec/1.0b3pre
Status: RESOLVED → VERIFIED
Component: General → Panning/Zooming
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: