优化 panel resize