PRD-4381 fix the resize frame when changing output display type