Closed
Bug 343688
Opened 18 years ago
Closed 18 years ago
Attempting to move tabs into right-hand overflow-scroll area while sidebar is open causes bizarreness
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 2 beta1
People
(Reporter: nfagerlund, Assigned: moco)
References
Details
(Keywords: fixed1.8.1, regression, Whiteboard: [SWAG: fixed on trunk, seeking approval for the branch])
Attachments
(4 files, 1 obsolete file)
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
patch
|
moco
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a3) Gecko/20060705 BonEcho/2.0a3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a3) Gecko/20060705 BonEcho/2.0a3
This is kind of hard to explain without a screenshot, so I'm going to follow up with a few in a second. What seems to be happening is that the window, chrome and all, tries to expand into an area beyond the right-hand window boundary. Ducks out from under your cursor and hides in the bushes, sort of. It's a fabulous prank, but I feel like that's not what you were going for.
This doesn't happen when you drag to the left. It doesn't happen when the sidebar isn't open.
Reproducible: Always
Steps to Reproduce:
1. Open enough tabs to cause the tab bar to overflow.
2. Open the bookmarks sidebar. (The viewable area of the tab bar will shrink.)
3. Scroll the tab bar to the far left.
4. Grab and drag a tab, and try to hover over the scrollbox arrow on the right-hand side of the window. (Try to scroll the tab bar to the right while dragging a tab.)
Actual Results:
Entirety of window contents overflow the window boundary by about half an inch (well, half an inch on my iBook screen), which makes the scroll box inaccessible.
Expected Results:
Tab bar scrolls.
Reporter | ||
Comment 1•18 years ago
|
||
This is what the problem looks like. Note that the scroll box, the search box controls, and part of my extension icon collection are all cut off.
Reporter | ||
Comment 2•18 years ago
|
||
For comparison, this is what it looks like after you stop trying to drag a tab to the right.
Reporter | ||
Updated•18 years ago
|
Blocks: tabbedbrowsing
Assignee | ||
Comment 3•18 years ago
|
||
this bug sounds like something I ran into while working on bug #318168.
see https://bugzilla.mozilla.org/show_bug.cgi?id=318168#c51
I fixed it, but I've never tried with the sidebar open.
investigating...
Assignee: nobody → sspitzer
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 4•18 years ago
|
||
I can reproduce this on win32 as well.
it's definitely the same thing that timo reported back at https://bugzilla.mozilla.org/show_bug.cgi?id=318168#c51
I spaced out and forgot to test all of the tab browsing stuff with the sidebar open. I'll go do that now, and investigate this issue.
I'm hoping it will not be a scary fix, and I can get to it for 2.0b1
Status: NEW → ASSIGNED
Flags: blocking-firefox2?
OS: Mac OS X 10.4 → All
Hardware: Macintosh → All
Target Milestone: --- → Firefox 2 beta1
Assignee | ||
Updated•18 years ago
|
Keywords: regression
Updated•18 years ago
|
Flags: blocking-firefox2? → blocking-firefox2+
Assignee | ||
Comment 5•18 years ago
|
||
the same problem causes the drop indicator to be drawn in the wrong spot.
working on it...
Assignee | ||
Comment 6•18 years ago
|
||
it looks like I need to take into account the position of the tab drop indicator bar.
working on a fix...
Assignee | ||
Comment 7•18 years ago
|
||
I've tested LTR with and without the sidebar. I'm asking robert for a review, for which I owe him a pony. I'm going to go test RTL now.
Attachment #228259 -
Flags: review?(robert.bugzilla)
Comment 8•18 years ago
|
||
Comment on attachment 228259 [details] [diff] [review]
patch, take into account the x position of the tab-drop-indicator-bar box
Looks good to me. Besides reviewing I also tested this with the sidebar on the left and the right hand side... all worked as it should.
Attachment #228259 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 9•18 years ago
|
||
asaf points out:
"well, shouldn't the marginright rely on ib.boxObject.x + ib.boxObject.width and marginLeft on ib.boxObject.x regardless of the direction?"
he has a point (but we still need to correct for width of the indicator)
I'm going to investigate and report back tomorrow.
Note, as for my attached patch, "this.mTabDropIndicatorBar.boxObject.x" should be "ib.boxObject.x".
Assignee | ||
Updated•18 years ago
|
Whiteboard: [SWAG: I have a patch, but want to respond to some questions from asaf]
Assignee | ||
Comment 10•18 years ago
|
||
here's some numbers to help answers asaf's questions.
here are the (.x,.width) of the tab drop indicator box and the tab strip under the four cases:
no scrolling, no sidebar
0,1009 tab drop indicator
2,1007 tab strip
scrolling, no sidebar
0,1009 tab drop indicator
25,961 tab strip
no scrolling, with sidebar
301,708 tab drop indicator
303,706 tab strip
scrolling, with sidebar
301,708 tab drop indicator
326,660 tab strip
the reason we can't just use the tab drop indicator bar dimensions to bound the margin for the tab drop indicator is it would be incorrect, and not account for the gap (2px) and more importantly, the width of the scroll box buttons.
note, we do use one edge of the tab drop indicator to prevent weirdness (similar to what's reported in this bug). for more on that, see bug #342363.
note, the reason we subtract the x position of the tab drop indicator bar is because the tab drop indicator margin left is relative to the tab drop indicator bar.
I'm going attach a new patch, that uses ib.boxObject.x (instead of this.mTabDropIndicatorBar.boxObject.x), which is the same thing, but cleaner.
Assignee | ||
Comment 11•18 years ago
|
||
seeking a= for 1.8, as this is a regression (caused by bug #318168 "Improve tabbed browsing")
Attachment #228259 -
Attachment is obsolete: true
Attachment #228324 -
Flags: review+
Attachment #228324 -
Flags: approval1.8.1?
Assignee | ||
Comment 12•18 years ago
|
||
I will land on the trunk first, but note, there is no sidebar on the trunk (see bug #330923).
Whiteboard: [SWAG: I have a patch, but want to respond to some questions from asaf] → [SWAG: have patch, seeking approval for the branch]
Assignee | ||
Comment 13•18 years ago
|
||
fixed on the trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Whiteboard: [SWAG: have patch, seeking approval for the branch] → [SWAG: fixed on trunk, seeking approval for the branch]
Updated•18 years ago
|
Attachment #228324 -
Flags: approval1.8.1? → approval1.8.1+
You need to log in
before you can comment on or make changes to this bug.
Description
•