Grouping - unexpected behaviour

Richard Gaskin ambassador at fourthworld.com
Mon Sep 21 10:59:49 EDT 2009


Graham Samuel wrote:
> If I group two images or two graphics (or maybe other objects - I  
> haven't tried), where one image is totally within the bounds of the  
> other (for example, one is 640 x 480 and the other is 120 x 120 and  
> the loc of each is the same), then the group turns out bigger than  
> than the larger of the two images! There seems to be an invisible  
> margin of 4 pixels all the way around the group, making the group 8  
> pixels wider and higher than the original largest image. Is this  
> supposed to happen? I have not found a way to avoid it, and so if I  
> want to maintain the size of my composite image I will have to crop  
> it, which to me is totally unexpected. My group has no border, and  
> AFAICS the boundingRect property has no influence on the situation.
> 
> Can anyone explain why this is happening?

A new group will have its margins set to 4 by default.  Setting the 
group's margins property to 0 after creation should take care of the issue.

--
  Richard Gaskin
  Fourth World
  Revolution training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com



More information about the use-livecode mailing list