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
Sincerely,
Joshua Choi