stretch container to automatically fit rectangles
Resize event handler