Closed Bug 101677 Opened 23 years ago Closed 23 years ago

popups should use css margins to affect positioning

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: hewitt, Assigned: hewitt)

References

Details

Attachments

(1 file)

I should be able to put a css margin on a popup, and have it add that to it's position. In addition, these margins should be used with respect to the popupAlign setting.
Attached patch patch to fixSplinter Review
Should the popupAlign (topleft, topright, etc.) be controlled from style, as well; e.g., -moz-popup-align: topleft? If so, we probably ought to map the attribute's value into style at the content level...
popupAlign and popupAnchor were merged into a single "position" property in the XUL 1.0 spec, so perhaps we could add a -moz-popup-position css property. Anyway, can we consider that a future enhancement and just get the current patch in? I need this fix for my outliner titletips work.
Blocks: titletips
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.5
Never mind. I didn't read the surrounding code. Your changes look fine. We should file a bug to get rid of all the insane string compares in this routine. hyatt, what were you _thinking_? ;-)
Comment on attachment 50841 [details] [diff] [review] patch to fix r=waterson
Attachment #50841 - Flags: review+
The string compares are a compatibility layer with the new syntax. Yes, it sucks, but I don't have the hand strength to patch the XUL to the new way.
Is it acceptible that if both the attribute and the style are set that we apply both margins to the x/y coordinates? If so, then r=pink. I just think that perhaps we would want the css to supercede the attribute, if it is present.
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: