Hi Joshua,
I believe you need to wrap your pages in a clear do.. end block
otherwise everything just hangs around
hope this helps.
Joshua Choi 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
Sincerely,
Joshua Choi
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.6.9/1637 - Release Date: 27/08/2008 07:01