as far as i can read out of the documentation it needs to be a
number...

but what you could try is to the follwing:

assuming you want the dialog to be in relation the window size..

figure out the window size and then multiply it with the percentage
you want your dialog to be and make that your new dialog size..

try something like this:

var wWidth = $(window).width();
var dWidth = wWidth * 0.8; //this will make the dialog 80% of the
window size
$('.dialog').dialog('option', 'width', dWidth);

not sure if it will work, since ive never worked with the dialog
before..

greetz,

toby

On Sep 6, 1:10 am, epsd <[email protected]> wrote:
> Perhaps I'm missing it, but is there a way to set the dialog size as a
> percentage instead of as a fixed pixel dimension? Thanks for any help!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to