On Wed, Aug 27, 2008 at 12:30 PM, Joshua Choi <[EMAIL PROTECTED]> wrote:
> The following code behaves puzzlingly. A page contains a stack whose
> width is set to a constant. When you navigate to another page and then
> back to the first page, its layout is messed up. Try running the code
> below. Click on the link, and then click on the button, which calls
> visit() to go back to the first page. The stack apparently has turned
> into a flow, and its width seems to now be unbounded.
>
>        class WeirdShoes < Shoes
>                url '/', :root
>                url '/about', :about
>
>                def root
>                        stack :width => 130 do
>                                title 'Test title'
>                                para 'Hello!'
>                        end
>                        inscription link('Link to something else', :click => 
> '/about')
>                end
>
>                def about
>                        para 'Placeholder'
>                        button 'OK' do
>                                visit '/'
>                        end
>                end
>
>        end
>
>        Shoes.app

Your code appears to behave correctly for me.

shoes raisins (0.r929) [i686-darwin8.9.1]

-- 
Seth Thomas Rasmussen
http://greatseth.com

Reply via email to