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)

2.0 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: beltzner, Assigned: moco)

Details

(Keywords: fixed1.8.1)

Attachments

(3 files)

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.
--> 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?
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.
Flags: blocking-firefox2? → blocking-firefox2+
Attached patch patchSplinter Review
Attachment #235254 - Flags: review?(mconnor)
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
Whiteboard: [seeking reviews mconnor]
Comment on attachment 235254 [details] [diff] [review] patch r=me on this, we should have always done this!
Attachment #235254 - Flags: review?(mconnor) → review+
Comment on attachment 235254 [details] [diff] [review] patch seeking approval
Attachment #235254 - Flags: approval1.8.1?
Does this bug affect trunk? I can't seem to tell - but the tabs are ugly there anyway :-).
Whiteboard: [seeking reviews mconnor]
> 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.
fix landed on the trunk, seeking approval for the branch.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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.
Whiteboard: [seeking approval, answer to schrep's question in comments #9 and #11]
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.
Whiteboard: [seeking approval, answer to schrep's question in comments #9 and #11] → [schrep-181approval pending]
Comment on attachment 235254 [details] [diff] [review] patch a=schrep/beltnzer for drivers.
Attachment #235254 - Flags: approval1.8.1? → approval1.8.1+
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.

Attachment

General

Created:
Updated:
Size: