bali33 Posted March 6, 2015 Share Posted March 6, 2015 Hello guys, I'm trying to retrieve group dimensions but its seems that width, height and getBounds do not take care of the group content - So whatever my group contents getBounds().width and getBounds().height returns 32 and width & height return the same value * the current group scale. Is that normal ? How can I get the group dimension according to its content ? Thank you Link to comment Share on other sites More sharing options...
bali33 Posted March 6, 2015 Author Share Posted March 6, 2015 Hi, I tried to use myGroup.getLocalBounds() be cause the documentation says that it take into consideration all the group children : "Retrieves the non-global local bounds of the displayObjectContainer as a rectangle. The calculation takes all visible children into consideration." But event this return a rectangle with a width and height of 32 whereas my group is way much bigger of that. I'm kind of stuck here because I really need to be able to know how large and long a group is in order to be able to set it's position according to its size. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts