Closed
Bug 807422
Opened 13 years ago
Closed 13 years ago
Panels should open towards the center of the browser window
Categories
(Firefox Graveyard :: SocialAPI, defect)
Firefox Graveyard
SocialAPI
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 19
People
(Reporter: shorlander, Assigned: jaws)
Details
Attachments
(2 files)
|
50.99 KB,
image/png
|
Details | |
|
1.01 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
Using Facebook in Nightly and Beta the panels are opening towards the outside of the browser window. They should be opening towards the center of the browser window like our other panels.
Attaching a screenshot. Sadly no one wants to be friends with me.
Comment 1•13 years ago
|
||
The panel used for toolbar button dropdowns is social-notification-panel:
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.xul#265
Do we need a position attribute on it? We open it here:
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-social.js#925
Popup positioning still confuses me - MDN suggests that the "bottomcenter topleft" we pass there is not a valid value for that argument. All of the social popups in browser.xul and openPopup calls in browser-social should probably be reviewed by someone who knows how they work!
Comment 2•13 years ago
|
||
It sounds like you want 'bottomcenter topright' which means 'place the topright corner of the popup at the bottom center of the anchor button'.
Can the button be customized and placed elsewhere? You might want topleft for the situation where the button has moved to the left side of the toolbar.
Comment 3•13 years ago
|
||
It sounds like it would be nice if there was a position option that means something like "whereever causes the least amount of the popup to be outside the application borders"
| Assignee | ||
Updated•13 years ago
|
OS: Mac OS X → All
Version: unspecified → Trunk
| Assignee | ||
Comment 4•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #679926 -
Flags: review?(felipc)
Comment 5•13 years ago
|
||
Comment on attachment 679926 [details] [diff] [review]
Patch
When we support moving the buttons around the toolbar let's remember to figure out a way to adaptively choose these values
Attachment #679926 -
Flags: review?(mhammond)
Attachment #679926 -
Flags: review?(felipc)
Attachment #679926 -
Flags: review+
| Assignee | ||
Comment 6•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c7fa101f3e81
(In reply to :Felipe Gomes from comment #5)
> Comment on attachment 679926 [details] [diff] [review]
> Patch
>
> When we support moving the buttons around the toolbar let's remember to
> figure out a way to adaptively choose these values
Yep, filed bug 811112 for this.
Flags: in-testsuite-
Comment 7•13 years ago
|
||
Does this magically work for RTL?
| Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #7)
> Does this magically work for RTL?
Yes it does. See the values here, http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsMenuPopupFrame.h#73 and how they are flipped in RTL mode here, http://mxr.mozilla.org/mozilla-central/source/layout/xul/base/src/nsMenuPopupFrame.cpp#864
Comment 9•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•