Welcome to WebmasterWorld Guest from 23.20.239.237

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Are there any XUL gurus around here?

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

Moderator This Forum from CA 

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

joined:Aug 29, 2003
posts:4059
votes: 0


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 June 24, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 21, 2005
posts: 1526
votes: 0


Think: Sergeant Schultz.

I know nufing. nuFING about XUL.

Sorry.

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

Preferred Member

10+ Year Member

joined:Feb 11, 2006
posts:481
votes: 0


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 June 24, 2008 (gmt 0)

Moderator This Forum from CA 

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

joined:Aug 29, 2003
posts:4059
votes: 0


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

Preferred Member

10+ Year Member

joined:Feb 11, 2006
posts:481
votes: 0


Hi,

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

Andrew

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

Moderator This Forum from CA 

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

joined:Aug 29, 2003
posts:4059
votes: 0


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 June 27, 2008 (gmt 0)

Senior Member

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

joined:Nov 12, 2005
posts:5966
votes: 0


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 July 7, 2008 (gmt 0)

Senior Member

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

joined:Nov 12, 2005
posts:5966
votes: 0


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

Moderator This Forum from CA 

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

joined:Aug 29, 2003
posts:4059
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members