On Mon, Sep 15, 2008 at 07:31:28PM +0900, Satoshi Asakawa wrote:
> I attempted to run the small below code.
> 
> Shoes.app do
>   nostroke
>   @obj = []
>   @obj << image(:width => 100, :height => 20){rect 0, 0, 100, 20, :fill =>
> yellow}
>   @obj << image(:width => 100, :height => 20){rect 0, 50, 100, 20, :fill =>
> green}.hide
>   @obj << rect(0, 100, 100, 20, :fill => blue)
>   @obj << rect(0, 150, 100, 20, :fill => red).hide
> 
>   every(3)[EMAIL PROTECTED]|e| e.toggle}}
> end
> 
> Yellow rectangle works well as my expected behavior.
> But others are not...

Yes, a bug in Shape.hide.  Also, the fourth line of your script has
a bug.

  Shoes.app do
    nostroke
    @obj = []
    @obj << image(:width => 100, :height => 20){rect 0, 0, 100, 20, :fill => 
yellow}
    @obj << image(:top => 50, :width => 100, :height => 20){rect 0, 0, 100, 20, 
:fill => green}.hide
    @obj << rect(0, 100, 100, 20, :fill => blue)
    @obj << rect(0, 150, 100, 20, :fill => red).hide
    every(1)[EMAIL PROTECTED]|e| e.toggle}}
  end

The fix is committed.

_why

Reply via email to