Closed
Bug 349751
Opened 19 years ago
Closed 19 years ago
extra space between tabs after dragging a tab to extreme left
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
RESOLVED
FIXED
Firefox 2
People
(Reporter: beltzner, Assigned: moco)
Details
(Keywords: fixed1.8.1)
Attachments
(3 files)
5.89 KB,
image/png
|
Details | |
768 bytes,
patch
|
mconnor
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
47.74 KB,
image/tiff
|
Details |
An interesting little bug, probably due to a lack of style overrides somewhere. Only seeing it on Mac. The result is that there's extra space between two tabs, which ends up looking pretty odd.
To reproduce:
1. Open a few tabs
2. Select the left-most tab
3. Drag a tab to the extreme left (so that it becomes the new left-most tab)
4. Take a look at the space between the two left-most tabs
For extra fun, drag another tab to the extreme left. You'll get the extra space between the three left-most tabs. Lather, rinse, repeat.
The extra space disappears when you select the tab to the right of the extra space.
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
--> sspitzer, per mconnor's decree!
--> blocking-firefox2? just so drivers see it, though I expect it to get +'d
Assignee: nobody → sspitzer
Flags: blocking-firefox2?
Comment 3•19 years ago
|
||
so, this is a bug in tabbrowser, we don't update firsttab/lasttab/beforeselected/afterselected when moving tabs. DOMI reveals the truth! Might be as easy as duplicating the bits in the tab selection code.
Updated•19 years ago
|
Flags: blocking-firefox2? → blocking-firefox2+
Assignee | ||
Comment 4•19 years ago
|
||
Attachment #235254 -
Flags: review?(mconnor)
Assignee | ||
Comment 5•19 years ago
|
||
the setter for "selected" on a tab (in tabbox.xml), does all the work of updating the "first-tab", "last-tab", "beforeselected" and "afterselected" attributes.
but it is per tab, so in moveTabTo() in tabbrowser.xml, we can't just do "this.mCurrentTab.selected = false;", change the position, and then do "this.mCurrentTab.selected = true;" to properly add (and remove) the "first-tab", "last-tab", "beforeselected" and "afterselected" attributes on all the tabs.
the fix I am proposing is similar to what we are doing in the setter for selectedIndex in tabbox.xml, which is, before doing tab.selected = true, we must first cal tab.selected = false on all the tabs.
thanks to mconnor for his reconnaissance work with DOMi and his suggestion.
Status: NEW → ASSIGNED
Assignee | ||
Updated•19 years ago
|
Whiteboard: [seeking reviews mconnor]
Comment 6•19 years ago
|
||
Comment on attachment 235254 [details] [diff] [review]
patch
r=me on this, we should have always done this!
Attachment #235254 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 7•19 years ago
|
||
Comment on attachment 235254 [details] [diff] [review]
patch
seeking approval
Attachment #235254 -
Flags: approval1.8.1?
Comment 8•19 years ago
|
||
Does this bug affect trunk? I can't seem to tell - but the tabs are ugly there anyway :-).
Whiteboard: [seeking reviews mconnor]
Assignee | ||
Comment 9•19 years ago
|
||
> Does this bug affect trunk? I can't seem to tell - but the tabs are ugly there
> anyway :-).
it does affect the trunk, but not as noticeably. when you hit this bug on the trunk you would see that the second tab has shifted 3px.
I'll attach as screen shot of what I mean.
Assignee | ||
Comment 10•19 years ago
|
||
fix landed on the trunk, seeking approval for the branch.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•19 years ago
|
||
once you are in this state, try clicking the 1st and 2nd tabs, and you will see the alignment problem as clicking tabs will clean things up.
Assignee | ||
Updated•19 years ago
|
Whiteboard: [seeking approval, answer to schrep's question in comments #9 and #11]
Comment 12•19 years ago
|
||
Out of interest, see bug 342679 comment 6. The margin-left set for the first-tab is revealing this problem, even though it isn't the underlying bug here. However, I can't see any reason for setting that margin. It seems to do nothing more than distort/shrink the first tab.
Updated•19 years ago
|
Whiteboard: [seeking approval, answer to schrep's question in comments #9 and #11] → [schrep-181approval pending]
Comment 13•19 years ago
|
||
Comment on attachment 235254 [details] [diff] [review]
patch
a=schrep/beltnzer for drivers.
Attachment #235254 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 14•19 years ago
|
||
fix landed on the branch.
(wayne, I'll respond to your comment next.)
Keywords: fixed1.8.1
Whiteboard: [schrep-181approval pending]
You need to log in
before you can comment on or make changes to this bug.
Description
•