Skip to main content

Search and Top Navigation

#3218 closed enhancement (duplicate)

Opened August 18, 2008 02:19AM UTC

Closed August 18, 2008 07:28AM UTC

Last modified August 19, 2008 04:32AM UTC

dialog should be able to determine size itself

Reported by: wichert Owned by: scottgonzalez
Priority: minor Milestone: 1.7
Component: ui.dialog Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

dialog() currently hardcodes the size of the dialog. This is rarely what you want. At least there should be an option to determine the size automatically.

Attachments (0)
Change History (4)

Changed August 18, 2008 07:28AM UTC by Cloudream comment:1

resolution: → duplicate
status: newclosed

Changed August 18, 2008 07:28AM UTC by Cloudream comment:2

milestone: TDB1.6

Changed August 18, 2008 02:38PM UTC by wichert comment:3

I do not see how #3190 is a duplicate of this bugreport.

I am currently using a modified version of ui.dialog which does not set the height and width CSS values at all if the width and height options are undefined, leaving the sizing. completely up to the browser and this works perfectly in FF3, Safari and IE. I would like to have a similar option using the standard ui.dialog as well, having a local fork is not ideal.

Changed August 19, 2008 04:32AM UTC by ThrushAAX comment:4

huh? ui.dialog does not hard code the height/width of the dialog container. Instead you set it as an option, its default is $("#dialog").dialog({height:200,width:300})

Doing .dialog({height:'',width:''}) should work fine. You could also calculate the dimensions based off of the contents size.