[composer] Follow up 2b3108f9ae, fix calculation of bounding rect after resizing composer shapes