jQueryUI dialog width

I’d suggest adding width and maxWidth to your dialog options. I don’t know what your design looks like, but try something like this, for example:

dialogopen.dialog({
   autoOpen: false,
   modal: true,
   open: function(){
      jQuery('.ui-widget-overlay').bind('click',function(){
         dialogopen.dialog('close');
      });
   },
   width: "90%",
   maxWidth: "768px"
});

Leave a Comment