> Hi,it seems a bug to me: if you do this:
>
> Shoes.app do
> a = image 30, 30, :top => 0, :left => 0 do
> rect 10,10,10,10
> end
> #a.move(0,0)
> end
>
> everything goes fine.
thanks ! Maybe you can help with the next placement problem too :-)
The code is the following :
class MyApp< Shoes
url "/", :index
def index
stack do
para "some text"
@a = flow :width => 30, :height => 30 do
fill blue
rect(10,10,10,10)
end
button "add square" do
@a.append do
fill magenta
rect(20,10,10,10)
end
end
end
end
end
Shoes.app
When I click the button, a magenta rectangle appears, but at the absolute
position (20,10).
Without urls (when I just use a Shoes.app block), the magenta square appears
next to the blue one. Any ideas ?
--
P.-A.