you can't set the card's rectangle, and the stack uses a different coordination system. So you need to convert using globalLoc which is the inverse of localLoc.
on mouseUp lock screen --gather and set coordinates for stack put the globalLoc of the topleft of field 1 into partOne put the globalLoc of the bottomright of field 1 into partTwo set the rectangle of this stack to partOne,partTwo --now the objects are not within the visible part of the stack, readjust all objects set the topleft of field 1 to 0,0 end mouseUp On 27.02.2013, at 13:40, Camm wrote: > It it possible to auto size a card to the size of a field of that card ? -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode