Closed Bug 656876 Opened 13 years ago Closed 13 years ago

Panning is broken if sidebars are collapsed

Categories

(Firefox for Android Graveyard :: Extension Compatibility, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 6

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Someone on IRC (PatrickBic) ask how to hide the sidebars/urlbar for an extension.

By adding those lines to a .css file loaded by an overlay this works:

#toolbar-container, #tabs-container, #controls-sidebar {
  visibility: collapse;
}

but doing this broke panning because Browser.computeSidebarVisibility() returns NaN for the visibility of the sidebars.

The patch just check that and return 0 instead.
Attachment #532167 - Flags: review?(mark.finkle)
OS: Linux → All
Hardware: x86_64 → All
Comment on attachment 532167 [details] [diff] [review]
Patch

Matt will need this for the Honeycomb changes too
Attachment #532167 - Flags: review?(mark.finkle) → review+
http://hg.mozilla.org/mozilla-central/rev/8d126484c20b
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Vivien, can provide some steps to reproduce, please?
Verified that this fixes panning with the work-in-progress patch from bug 656329.
Status: RESOLVED → VERIFIED
Target Milestone: --- → Firefox 5
Target Milestone: Firefox 5 → Firefox 6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: