The callback caches container div dimensions on creation, but it should update these values when the window resizes.