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
