Hi Seth, Wow! It works pretty well on my Windows XP, too. I can't confirm on Mac, because I've no Mac. :-P I'll post your cool solution into the Shoes programming course.
Thanks so much, ashbb On Fri, Apr 24, 2009 at 1:18 AM, Seth Thomas Rasmussen < [email protected]> wrote: > 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 >
