Some things for you to consider:

the span you exemplified doesn't have only a class
property set. Where is the size for that set? If it's
using dynamically set NS4 won't recognize it, rather
use a document.write method to write a STYLE tag (I'm
not sure if coreStyle does it that way or not)   

If you're using any dynapi widget dependancy in your
widget I suggest you use Label which is included in
the latest official release. It is reliable to resize
and other stuff with text crossbrowsers (might be some
NS6 issues still though) and won't cause you the
hassle when distributing your widgets with the newest
release.

Henrik Våglin [ [EMAIL PROTECTED] ]

 --- Ken Ono <[EMAIL PROTECTED]> skrev: > Hi List,
> 
> I'm working on a pulldown menu widget and have a
> couple of questions.
> 
> Any body know how to automatically size based on
> content?  For example, if I
> have a button with the letter 'X' in it, I would
> like to make it very small.
> (top menu) For large text, I will want to make the
> button grow in vertical
> size. (for drop down items) I've tried using
> getContentHeight() and
> getContentWidth() but they don't seem to be
> cooperating.
> 
> Also, control the appearence of the selected and
> unselected items, etc, how
> effective is using style sheet classes like:
> 
>               o.setHTML('<span
> class="PullDownMenu">'+o.caption+'</span>')
> 
> Does this create any cross browser issues?  In IE i
> note that I can do a lot
> of stuff with borders and the like.  How well does
> this translate into NS
> 4/6?
> 
> Ken
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/dynapi-help


=====
// Henrik Vaglin

**************************************************
Visit my comics artpage at 
http://photos.yahoo.com/bc/hvaglin?d&.flabel=fld5&.src=bc
**************************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to