Closed Bug 342363 Opened 18 years ago Closed 17 years ago

tab drop indicator should be a few more pixels to the right in a certain case

Categories

(Firefox :: Tabbed Browser, defect)

2.0 Branch
x86
All
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: moco, Unassigned)

References

Details

Attachments

(1 file)

drop indicator should be a few (1/2 the width of the drop indicator) more pixels to the right in certain case

here's the scenario:  when you are dragging and dropping a tab and you don't have enough tabs where you get the scrolling effect (see bug #318168), and you attempt to drop the tab to the far right, it will not be placed in the exact spot it should.

instead, it will be a few pixels to the left of where it should be, and the entire indicator is visible. 

we are setting the marginLeft of the drop indicator, and if we set it any further to the right, it will flex and stretch the containing hbox which will in turn flex and stretch the url bar, and this is not good.

I'll attach a screen shot of what it looks like now, and what I want it to look like.

from bug #318168, I have this comment:

1)  fix this code and make it so the drop indicator, if drawn on the far right
(or far left, if rtl) is clipped as it is on the far left (or far right, if
rtl)

here's the code I don't especially like:

+                // make sure we don't place the tab drop indicator past the
+                // edge, or the containing box will flex and stretch
+                // the tab drop indicator bar, which will flex the url bar.  
+                // XXX todo
+                // just use first value if you can figure out how to get
+                // the tab drop indicator to crop instead of flex and stretch
+                // the tab drop indicator bar.
+                var maxMarginRight = Math.min(
+                  (minMarginRight + tabStripBoxObject.width), 
+                  (ib.boxObject.x + ib.boxObject.width -
ind.boxObject.width));

discusssing it with michael wu, he gave me an idea of how to do what I want.

one suggestion is to not use marginLeft, but instead use relative positioning of the background image, so that it will crop instead of affect the containing hbox.

I'll investigate.
Status: NEW → ASSIGNED
Summary: tab drop indicator should be a few (1/2 the width of the drop indicator) more pixels to the right in certain case → tab drop indicator should be a few more pixels to the right in a certain case
Uh, but isn't it worse to have the arrow render as being cut off just because you're at the edges? I almost want to request that we detect when we're up against an edge and in those cases rotate the arrow 45 degrees so the arrowhead is at the very edge of the tabstrip.
> I almost want to request that we detect when we're up against an edge and in 
> those cases rotate the arrow 45 degrees so the arrowhead

this reminds me of something mconnor suggested:

while dragging and scrolling, draw the drop indicator at an angle to indicate what's going on.
Is this related to bug 343688?
sorry for the bug spam, re-assigning bugs back to default owner if I'm not working actively on them.
Assignee: sspitzer → nobody
Status: ASSIGNED → NEW
This bug seems to be now invalid since the tabs drop menu was added to the right of the tab bar. The dnd indicator always has room.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: