Ah, I should have included my version. I'm using shoes 0.925 on Mac OS
X. It also does not work on Windows XP. I also recall that this
problem existed for r905 Mac and Windows.
(How may I obtain Shoes Raisins to test if the problem is there too?)
On Wed, Aug 27, 2008 at 4:30 PM, Seth Thomas Rasmussen
<[EMAIL PROTECTED]> wrote:
> 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
>