Because a widget is resized before it is shown