Re: Re: Determining number of visible OPTIONs in a SELECT

Ian Petersen <[email protected]>
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
> Here's what I meant:
>
> If you do something like:
> select.style.fontSize = '12px';
> select.style.height = '50px';
>
> IE 6 will resize the font (ignoring -- or "adjusting" on might say -- your '12px') so that a whole
> number of options fit within the select.  It does this to prevent a partial option from showing at
> the bottom.  You can try this easily.  Change the '12px' to '10px' and the font doesn't change.
> Change it down to '8px' and it finally changes -- but it's probably not actually 8px.  It's whatever fits
> a whole number of options.

Huh.  That's very useful to know.  Kind of irritating, but at least I
can deal with it in the future.  As far as my use-case goes, though,
every SELECT has the same font size, so it's (luckily) not a problem
for me.

Thanks for the clarification,

Ian

--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.