Closed
Bug 101677
Opened 23 years ago
Closed 23 years ago
popups should use css margins to affect positioning
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla0.9.5
People
(Reporter: hewitt, Assigned: hewitt)
References
Details
Attachments
(1 file)
1.72 KB,
patch
|
waterson
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
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...
Assignee | ||
Comment 3•23 years ago
|
||
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.
Comment 4•23 years ago
|
||
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 5•23 years ago
|
||
Comment on attachment 50841 [details] [diff] [review]
patch to fix
r=waterson
Attachment #50841 -
Flags: review+
Comment 6•23 years ago
|
||
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.
Comment 7•23 years ago
|
||
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.
Assignee | ||
Comment 8•23 years ago
|
||
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.
Description
•