panel: Fix sizing before we're displayed