Cjuidialog Resizing

How do I set the size of the CJuiDialog? What I mean by size is the Percent size.

Is there anyway around it?

like you can set the dialog size to a 100% or 60%.

In my View





<?php

$this->beginWidget('zii.widgets.jui.CJuiDialog', array(

    'id' => 'dialog',

    'options' => array(

        'title' => 'title',

        'width' => 'auto',

        'height' => 'auto',

        'autoOpen' => false,

        'modal' => true,

        'overlay' => array(

            'backgroundColor' => '#000',

            'opacity' => '0.5'

        ),

    ),

    'htmlOptions' => array(

        

    )

));

$this->endWidget('zii.widgets.jui.CJuiDialog');



In my Controller





echo CHtml::ajaxButton('Preview',

        $this->createUrl('controller/action'),

        array(

            'style'=>'cursor: pointer;',

            'success'=>'function(r){$("#dialog").html(r).dialog("open"); return false;}'

        )

);