If you're feeling adventurous, and don't mind playing about a bit with
your layout, checkout how the shoes Help app does some of its layouts
in (shoes/lib/shoes/help.rb)

On Thu, Jan 29, 2009 at 01:21, Alexander Rakoczy
<[email protected]> wrote:
> On Thu, Jan 29, 2009 at 00:09, Sam Saffron <[email protected]> wrote:
>> This works .. is there any way I can improve it ?
>
> Hi Sam!
>
> Because of the problems I've had with :scroll => true and setting
> heights (usually a bad idea with the way Shoes is designed), I would
> do something similar this way:
>
> http://gist.github.com/54431
>
> This way, you'll find that by being attached to a window, scrolling
> the whole app should work a lot nicer.  I tried running this in OSX
> and the whole sticky fandango failed on me entirely, so I've since
> booted into linux (which I will assume you are using too).  In linux,
> the mouse scroll wheel works as well, too.
>
> I keep the style in it's own method call, instead of the stack(styles)
> way of doing it, since for some reason you cannot save the stack to an
> instance variable if you do so.
>
> Also, you don't need to save the app object, since self is (almost)
> always Shoes.app, and if it isn't, there's a method called 'app' to
> get it.
>
> I hope this helps.
>
> Alex
>
> --
> alexander rakoczy
>



-- 
alexander rakoczy

Reply via email to