Hi, I'm trying to write some UI code in Factor and have got a little stuck with making gadgets scrollable. I've got a pack which contains several panes (10, in fact), each of which has some text rendered to it. Then I stick the pack into a scrollable and add the result to another pack, which is the main contents of the window.
What I expected to happen was that the scrollable would be constrained to the amount of space in the window, and the scroll bars would allow me to pan around the gadget inside. What seems to happen instead is that the inner pack gadget has the correct size to fit each of the panes and then the scrollable is also the same size: not fitting on the window, and with grayed-out scroll bars. I presume that I need to tell something a maximum size somewhere, but I can't work out what I've missed, looking at the code for the browser etc. for inspiration. Can anyone point me to what I should be doing? There's a screenshot of what the current code renders to at http://i.imgur.com/7UqCg.png if it's any help Thanks in advance, Rupert
pgpWw7QicWYp3.pgp
Description: PGP signature
------------------------------------------------------------------------------ FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk