trying to handle the dialog width by video size