Ahh, well I did expect it to work like that, hmmm... It still could be justified I suppose, it's really upto _why whether it's a bug, or just a "feature", just how it works. I have not seen any specification for how that is meant to behave, which is why I say this.
> Subject: Re: Shoes reports 0,0 location on newly created image > From: [email protected] > To: [email protected] > Date: Thu, 21 May 2009 20:24:20 -0700 > > This is a bug... it's not supposed to happen. > > Plus #style doesn't give updated position, so if you move it, it will > still be the original position. > > On Wed, May 20, 2009 at 6:34 AM, Satoshi Asakawa <[email protected]> wrote: > > Hi Ehsan, > > > > I run the following snippet: > > > > Shoes.app do > > @msg1 = para > > @msg2 = para > > image 24, 24, :left => 1, :top => 1 do > > @msg1.text = "#{left}, #{top}" > > @msg2.text = "#{self.style[:left]}, #{self.style[:top]}" > > end > > end > > > > Outputs are: > > # msg1 => 0, 0 > > # msg2 => 1,1 > > > > Umm.... I'm using Windows XP and Shoes 2 (0.r1134) > > > > Regards, > > ashbb > > > > On Wed, May 20, 2009 at 3:46 PM, Ehsanul Hoque <[email protected]> > > wrote: > >> > >> Looks like your para method call is in the Shoes.app block. So it is > >> giving you the top and left of the shoes app window, so no, don't think > >> that's a bug at all. > >> > >> Try putting the para in the image block, and it should give you the > >> expected result of "1, 1" > >> > >> - ehsan > >> > >> > Subject: Shoes reports 0,0 location on newly created image > >> > From: [email protected] > >> > To: [email protected] > >> > Date: Mon, 18 May 2009 19:43:36 -0700 > >> > > >> > Erm... bug? > >> > > >> > Shoes.app do > >> > @i = image 24,24, :left => 1, :top => 1 do > >> > end > >> > para "#[email protected]}, #[email protected]}" > >> > end > >> > > >> > #=> 0,0 > >> > > >> > Why? > >> > > >> > -- > >> > ~devyn > >> > >> ________________________________ > >> HotmailĀ® has a new way to see what's up with your friends. Check it out. > > > > > > -- > ~devyn _________________________________________________________________ HotmailĀ® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
