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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 19

People

(Reporter: shorlander, Assigned: jaws)

Details

Attachments

(2 files)

Attached image Screenshot
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.
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!
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.
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"
OS: Mac OS X → All
Version: unspecified → Trunk
Attached patch PatchSplinter Review
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Attachment #679926 - Flags: review?(mhammond)
Attachment #679926 - Flags: review?(felipc)
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+
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-
Does this magically work for RTL?
(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
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: