|Are there any XUL gurus around here?|
Are there any XULists here?
or should I ask in the Firefox forum?
I'm trying to build a XUL interface that includes a toolbar menu;
ie when the menu trigger is activated, it drops down a menu of commands or options.
This is producing something similar to what I need:
However, this menulist is inside a <box>, so when the popup is triggered, it enlarges the box itself, i.e. makes it really tall. What I want is something that overlaps the rest of the window, like when you go to your Bookmarks.
gosh, it's kind of hard to explain
I'll start noodling with the CSS and see if that gets me anywhere
Think: Sergeant Schultz.
I know nufing. nuFING about XUL.
Are you saying you have a toolbar button that, when clicked on, reveals a menu (similar to the toolbar added by the Web Developer add-on for Firefox)?
actually, it looks and acts in every way just like a <select> does in HTML
I can't seem to replicate this behaviour, could you post more code?
fyi the code in my toolbar is exactly as above; keep in mind this is being loaded as XUL into the browser's chrome, in an extension, not on an HTML page.
I'll be online later tonight to post more code if it would help...
Alright, I really don't know, but try the following:
You might find the reference handy, too: [developer.mozilla.org...]
I'm assuming you got this all fixed?
Sorry eelix, I forgot to offer closure. Yes, it's solved. I had some rogue CSS positioning in there, I deleted a whole pile of stuff in a bloated CSS file and the problem went away. I'm guessing it was something defined with position:relative, or display:block, or overlap:hidden or something like that.
BTW, the <menupopup> @position attribute does something different from what I was looking for, but it's a neat feature to know about; some of these XUL elements allow way more customization than their HTML cousins