Support dynamic window resizing.