I tried this code on a group, which contains objects. It seems not working in that case. Did you try this on a group? Basically objects scale perfectly even the group but top and right position of the group is not right