dialog auto width problem in IE

dialog auto width problem in IE


Hi, all!
Whenever I try to make the dialog width be auto, it stretches to
almost 100% of the screen, instead of just enough to encompass the
dialog contents. This happens in IE 7. I tried googling for fixes,
but found none. Tried looking in the bugs section of the site but
received an error. Does anyone know of a workaround to make the widht
auto-stretch but not stretch too much?
Here's the example code:
        <script type="text/javascript">
            $(function() {
                $('#myTable').dialog({
                    width: 'auto',
                    height: 'auto'
                });
            });
        </script>
.....
        <div id="myTable" style="width:150px; height:150px">
        lsadk lasdkj sldkjf lskdj fasd
        </div>
I tried changing div to span and table, same results.
Thanks!