Revise the size of panel.