Closed Bug 940387 Opened 11 years ago Closed 11 years ago

Wide widgets wideness messes up DnD placeholders in the palette

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 29

People

(Reporter: u428464, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:P2])

Attachments

(4 files, 2 obsolete files)

First of all I wanna say the new DnD stuff is pretty awesome. Sadly I ran into three main issues. 
Firstly the caption buttons flicker on Windows when you drag and drop stuff in the panel or the palette (sometimes they seem disabled and then they are normal again).
Secondly the placeholders can be taken off the panel and then they disappear.
Thirdly the wide widget aren't animated into the palette and they overlap other icons when a normal widget are dragged upon them.
Blocks: 919965
Whiteboard: [Australis:M9][Australis:P2]
I also wanna say that the placeholders could maybe be done differently : it's pretty strange to have the third one being pushed to the next line.
(In reply to Guillaume C. [:ge3k0s] from comment #2)
> Thirdly the wide widget aren't animated into the palette and they overlap
> other icons when a normal widget are dragged upon them.

I'm sorry, I don't really understand what you mean here. Can you elaborate and/or provide a screenshot?
Attached image DnD issue.png
Yeap here's a screenshot of the issue
(In reply to Guillaume C. [:ge3k0s] from comment #3)
> Created attachment 8334543 [details]
> DnD issue.png
> 
> Yeap here's a screenshot of the issue

I thought we fixed the look of wide items in the palette, Mike? Do we still need the rest of bug 878065
Flags: needinfo?(mdeboer)
The wide widget issue is our own fault - we specifically style the edit and zoom controls to be this wide in the panel, see bug 879974. This throws off all the logic in the dragging code.

Stephen, would it be OK if we styled the wide items similar to how they are shown in the navbar, to ensure they're not so wide when in the palette?

Alternatively, we could disable the animation effects within the palette - having variable-width items in there which reflow organically (rather than the distinct row-filling items in the panel) makes the problem of reflowing items correctly much harder.

Still alternatively... we could try to rework the animation to make it work with variable-width items. But that is significantly more complex than what it currently does.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(mdeboer) → needinfo?(shorlander)
(In reply to Guillaume C. [:ge3k0s] from comment #7)
> Firstly the caption buttons flicker on Windows when you drag and drop stuff
> in the panel or the palette (sometimes they seem disabled and then they are
> normal again).

I expect this is the same as bug 940455. Does that sound plausible?
Trivial fix.
Attachment #8336069 - Flags: review?(jaws)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #8336069 - Flags: review?(jaws) → review+
remote:   https://hg.mozilla.org/integration/fx-team/rev/5e91ba03a3df
Whiteboard: [Australis:M9][Australis:P2] → [Australis:M9][Australis:P2][fixed-in-fx-team][leave open]
Attachment #8336069 - Flags: checkin+
(In reply to :Gijs Kruitbosch from comment #7)
> (In reply to Guillaume C. [:ge3k0s] from comment #7)
> > Firstly the caption buttons flicker on Windows when you drag and drop stuff
> > in the panel or the palette (sometimes they seem disabled and then they are
> > normal again).
> 
> I expect this is the same as bug 940455. Does that sound plausible?

That seems to be it ;)
https://hg.mozilla.org/mozilla-central/rev/5e91ba03a3df
Whiteboard: [Australis:M9][Australis:P2][fixed-in-fx-team][leave open] → [Australis:M9][Australis:P2][leave open]
Summary: Issues with the new DnD behaviour → Wide widgets wideness messes up DnD placeholders in the palette
I've just gone ahead and written up a patch for this. This looks nice, and no longer messes up DnD stuff. Mike, what do you think?
Attachment #8341695 - Flags: review?(mdeboer)
Attached image Screen shot of new wide widget styling (obsolete) —
Just noticed this 'oops' issue in the code here... wide items snap to the first item in their row in the palette, too. That's obviously wrong...
Attachment #8341700 - Flags: review?(mdeboer)
Discussed this with Stephen on IRC, and he said this should be alright.
Flags: needinfo?(shorlander)
Comment on attachment 8341695 [details] [diff] [review]
change Australis' wide widget styling in palette to fit into grid,

Review of attachment 8341695 [details] [diff] [review]:
-----------------------------------------------------------------

Did you mean to make the icons look stretched?
Attachment #8341695 - Flags: review?(mdeboer)
Flags: needinfo?(gijskruitbosch+bugs)
Comment on attachment 8341700 [details] [diff] [review]
when dragging wide items in Australis' palette, don't fix insertion point to first item in row,

Review of attachment 8341700 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM!
Attachment #8341700 - Flags: review?(mdeboer) → review+
(In reply to Mike de Boer [:mikedeboer] from comment #16)
> Comment on attachment 8341695 [details] [diff] [review]
> change Australis' wide widget styling in palette to fit into grid,
> 
> Review of attachment 8341695 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Did you mean to make the icons look stretched?

No; they should be 16x16px, sourced from files in which they are 32x32 or 16x16, IIRC. I had to fix the width to make them not look stretched on OS X (because without that style they ended up being 18x13px or something weird). What platform do they look stretched on?
Flags: needinfo?(gijskruitbosch+bugs)
Erm, on OSX...
Oh, I see, this is because there's padding set on the buttons somehow, and I seem to have missed that. New patch coming up.
So this helps... I can't just adjust the rule (in customizemode.inc.css) that's causing the padding to not apply here, because I'd still have to override the padding, as the default for toolbarbuttons is 2px 6px, which actually distorts the icons worse still.
Attachment #8343922 - Flags: review?(mdeboer)
Attachment #8341695 - Attachment is obsolete: true
Comment on attachment 8341700 [details] [diff] [review]
when dragging wide items in Australis' palette, don't fix insertion point to first item in row,

remote:   https://hg.mozilla.org/integration/fx-team/rev/eccf0988ebee
Attachment #8341700 - Flags: checkin+
Attachment #8341699 - Attachment is obsolete: true
Comment on attachment 8343922 [details] [diff] [review]
change Australis' wide widget styling in palette to fit into grid,

Review of attachment 8343922 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM! Thanks!
Attachment #8343922 - Flags: review?(mdeboer) → review+
Gijs, I think it'd be a good idea to close this bug after you checked in attachment 8343922 [details] [diff] [review] and use proper follow-up bugs for any DnD-related future work.
Comment on attachment 8343922 [details] [diff] [review]
change Australis' wide widget styling in palette to fit into grid,

(In reply to Mike de Boer [:mikedeboer] from comment #25)
> Gijs, I think it'd be a good idea to close this bug after you checked in
> attachment 8343922 [details] [diff] [review] and use proper follow-up bugs
> for any DnD-related future work.

Yes, I agree. This is the last thing to address from comment #0; the fog overlay in Win7 has its own bug (bug 940455).

https://hg.mozilla.org/integration/fx-team/rev/27dfeba05309
Attachment #8343922 - Flags: checkin+
Whiteboard: [Australis:M9][Australis:P2][leave open] → [Australis:P2][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/27dfeba05309
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P2][fixed-in-fx-team] → [Australis:P2]
Target Milestone: --- → Firefox 29
QA Contact: cornel.ionce
I was able to confirm the fix for this issue on the latest Aurora (Build ID: 20140310004003) and the latest Nightly (Build ID: 20140310030201), using:
- Windows 7 64-bit [1]
- Ubuntu 12.04 32-bit [2]
- Mac OS X 10.9.1 [3]

1. Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
2. Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0
3. Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: