clone dialog width

clone dialog width

I am passing link attributes to set dialogs height and width.  This works fine for height but width does not want to accept any variables, just actual value.  I've tried everything I can think of, even using vsize in width which works fine for height.  None of the options worked.  Is this a bug?

  1. $dialog
                        .load($link.attr('name') + ' #content')
                        .dialog({
                            title: $link.attr('title'),
                            width: $link.attr('hsize'),
                            height: $link.attr('vsize'),
                            modal: true,
                            buttons: buttons
                        });