Welcome to WebmasterWorld Guest from 54.145.209.34

Forum Moderators: httpwebwitch

Are there any XUL gurus around here?

   
6:21 pm on Jun 24, 2008 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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:

<menulist id="currencyselect">
<menupopup>
<menuitem label="dollar"/>
<menuitem label="pound"/>
<menuitem label="yen"/>
<menuitem label="euro"/>
</menupopup>
</menulist>

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

7:09 pm on Jun 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Think: Sergeant Schultz.

I know nufing. nuFING about XUL.

Sorry.

8:12 pm on Jun 24, 2008 (gmt 0)

5+ Year Member



Hi,

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)?

Andrew

8:18 pm on Jun 24, 2008 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



actually, it looks and acts in every way just like a <select> does in HTML
8:34 pm on Jun 24, 2008 (gmt 0)

5+ Year Member



Hi,

I can't seem to replicate this behaviour, could you post more code?

Andrew

9:33 pm on Jun 24, 2008 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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...

8:32 am on Jun 27, 2008 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Alright, I really don't know, but try the following:

<menupopup position="overlap">

You might find the reference handy, too: [developer.mozilla.org...]

7:15 pm on Jul 7, 2008 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



I'm assuming you got this all fixed?
1:45 pm on Jul 8, 2008 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month