Looks like locking messages before setting the rect of the stack resolves this problem as a workaround.
Bob S > On Feb 18, 2015, at 09:00 , Bob Sneidar <[email protected]> wrote: > > OK so there are still problems with 6.7.2. In a front script I have > > on openCard > -- set the size of the stack to the size of the background image > if there is an image "imgBackground" then > lock screen > put the topLeft of this stack into theTopLeft > set the rect of this stack to the rect of image "imgBackground" > set the topLeft of this stack to theTopLeft > unlock screen > else if there is a graphic "grcBackground" then > lock screen > put the topLeft of this stack into theTopLeft > set the rect of this stack to the rect of graphic "grcBackground" > set the topLeft of this stack to theTopLeft > breakpoint > unlock screen > end if > pass openCard > end openCard > > The idea is to size the card I go to based upon the size of a graphic or > image. The command to set the rect of the stack WORKS, but then script > execution terminates and no other commands (like setting the topLeft of the > stack) execute. I’ll file a bug. > > Bob S > > > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
