WebDialog resize runtime

Hi all!
Does anyone got a class that resize in runtime a webdialog?I need to take the dimensions from the browser resolution