Hi Zulfiqar,

I confirmed the same problem on my Windows XP and Shoes-0.r1057.

@square2 works as expected and @square1 doesn't.
# Maybe you made a typo in the first mail, I guess. ;-)

Just information.

Thanks,
ashbb


On Thu, Oct 16, 2008 at 4:31 AM, Zulfiqar Ali <[EMAIL PROTECTED]> wrote:

> Hi,
> Think I found a bug with onclick events on shapes.
> If i use the :center attribute on the shape only the lower right region of
> the shape is clickable.
>
>
> Shoes.app :width => 350, :height => 200 do
>
>   @square1 = rect 100, 100, 100, 100, :center => true
>   @square2 = rect 200, 50, 100, 100
>
> #works as expected
>   @square1.click do
>     animate (24) do |i|
>       @square1.move(100, 100 + (Math.sin(i) * 6).to_i)
>     end
>   end
>
> #does not work
>   @square2.click do
>     animate (24) do |i|
>       @square2.move(200, 50 + (Math.sin(i) * 6).to_i)
>     end
>   end
> end
>
> --
> Zulfiqar Ali
> CTO, TimeSvr
> +65-81386962
>

Reply via email to