Fix panelShown positioning