Hi Sam and Alex et al,
Though I didn't follow all previous your discussions, the following snippet
seems to work well on my Windows XP with Shoes 2. ;-)
Shoes.app do
stack :height => 100, :top => 0 do
background red
end
stack :height => 100, :bottom => 0 do
background blue
end
end
Hope I didn't misunderstand,
ashbb
On Sat, Jan 31, 2009 at 6:21 AM, Sam Saffron <[email protected]> wrote:
> gotcha, will give it a shot, thanks so much ... btw if you are a member on
> SO you can post an answer here and get 25 points :)
> http://stackoverflow.com/questions/489558/in-shoes-how-do-i-dock-a-stack-to-the-bottom-of-the-window
>
>
> On Sat, Jan 31, 2009 at 2:40 AM, Alexander Rakoczy <
> [email protected]> wrote:
>
>> Hi Sam,
>> No problem!
>>
>> Essentially, the bottom stack is attached to the window, so it's just
>> covering it up. Try putting on a margin-bottom to the top stack to
>> give it some room at the bottom.
>>
>> Alex
>>
>> On Thu, Jan 29, 2009 at 18:31, Sam Saffron <[email protected]> wrote:
>> > Alex,
>> >
>> > Thank you very much! The tips are really helpful.
>> >
>> > This is proving really tricky, your solution seems to be cropping off
>> the
>> > bottom of the top stack ... also the scroll bar extends the whole window
>> and
>> > not only the top stack...
>> >
>> > I do not have a mac Im on linux so I didnt pick up on this...
>> >
>> > Thanks again
>> > Sam
>> >
>> > On Thu, Jan 29, 2009 at 6:21 PM, 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
>>
>
>