window height/width set if null

In setVideoSize deal with null height/width.