Fix a panel frame size bug.