On Thu, Apr 23, 2009 at 11:49 AM, Satoshi Asakawa <[email protected]> wrote:
> Hi all,
>
> I got the following information (problem) in my Shoes programming course at
> the RubyLearning.
>
> Try to run and click the button every after resizing the Shoes window:
>
> Shoes.app do
>   button 'show' do
>     para "#{width} : #{height}\n"
>   end
> end

Indeed. Here is a workaround, fwiw: go through the slot object.

Shoes.app do
  other_slot = flow
  button 'show' do
    # This should report on the top level flow.
    para "app slot #{slot.width} : #{slot.height}"
    # This should report on the 0 height flow we created.
    para "other slot #{other_slot.width} : #{other_slot.height}"
  end
end

Seems to work for me on OS X with a recent policeman build.

-- 
Seth Thomas Rasmussen
http://greatseth.com

Reply via email to