homepage Welcome to WebmasterWorld Guest from 54.166.228.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
Are there any XUL gurus around here?
httpwebwitch




msg:3682626
 6:21 pm on Jun 24, 2008 (gmt 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

 

cmarshall




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

Think: Sergeant Schultz.

I know nufing. nuFING about XUL.

Sorry.

Little_G




msg:3682706
 8:12 pm on Jun 24, 2008 (gmt 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

httpwebwitch




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

actually, it looks and acts in every way just like a <select> does in HTML

Little_G




msg:3682721
 8:34 pm on Jun 24, 2008 (gmt 0)

Hi,

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

Andrew

httpwebwitch




msg:3682758
 9:33 pm on Jun 24, 2008 (gmt 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...

eelixduppy




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

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

<menupopup position="overlap">

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

eelixduppy




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

I'm assuming you got this all fixed?

httpwebwitch




msg:3693213
 1:45 pm on Jul 8, 2008 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved