[composer] Follow up 44b18675840, fix calculation of bounding rect after resizing composer shapes