Thanks for the suggestion! I haven't yet been able to get setAutoSize() to work with PanelBar, but if I can then that would certainly be a much better way of doing what I want. I'll keep trying...


Andrew.


Raymond Irving wrote:
why not use the setAutoSize() function?

var pb = new PanelBar()
pb.setWidth(200)
pb.setAutoSize(null,true);
// ^ now the panelbar should adjust // to the height of it's content


--
Raymond Irving



--- Andrew Gillett <[EMAIL PROTECTED]> wrote:


Hi Daniel,

Daniel Tiru wrote:

Hi Andrew!

I have looked throught your code and i will make

the changes to the


stacker, and aswell the ";" to the window :)

However i dont really understand the change you

did to the window. Do


you want the content layer to set the size of the

window?


Exactly.  Currently the height of the window is
fixed to the number of pixels you specify when you
create it.  I want to create a PanelBar, set its
content to an arbitrary amount of text, and have the
window automatically size itself to fit the text.

My main issue with PanelBar as it stands is that it
does not allow subclassing because its constructor
fails when invoked with no arguments.

I've attached an example of what I wanted, along
with a slightly modified version of panelbar.js.  I
hope you'll be able to see what I'm talking about.


Or am i out of
the game?

No way :)



Regards
Daniel


regards, Andrew





------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to