I just spent an hour struggling with this so I thought I would post here for
posterity (and for other newbies like myself). It appears that using
:height instead of :scroll_height to style stacks will lead to weird
crashes. Or maybe I'm doing something terribly stupid, I don't know. For
example, this will crash when the button is pressed:
Shoes.app :width => 300, :height => 400 do
stack :width => 0.5, :height => 1.0 do
button("press me"){alert("You won't see this.")}
end
end
but this will not crash when the button is pressed:
Shoes.app :width => 300, :height => 400 do
stack :width => 0.5, :scroll_height => 1.0 do
button("press me"){alert("Pressed!")}
end
end
For the record, I was running raisins 0.r1091, mswin32. Bye for now!