Skip to main content

Search and Top Navigation

#3181 closed bug (worksforme)

Opened August 13, 2008 09:27PM UTC

Closed August 14, 2008 03:01AM UTC

Centering a Modal dialog box

Reported by: Owned by: scottgonzalez
Priority: major Milestone:
Component: ui.dialog Version: 1.5.2
Keywords: Modal center dialog Cc:
Blocked by: Blocking:

I'm displaying a dialog box centered. It works fine as long as I

don't scroll down on the web page. If I scroll down and clink my link to display the dialog, the browser scrolls back to the top and the dialog is display centered horizontally but not vertically. I have tried this in FF3 and IE6.

I would like the dialog box to display centered in the browser regardless of where on the page the user has scrolled.

This is the code I ue to create the dialog.


autoOpen: false,

height: 260,

width: 400,

modal: true,

center: true,

resizable: false});

Attachments (0)
Change History (1)

Changed August 14, 2008 03:01AM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

This works fine for me. Also, there is no "center" option. You need to do position: "center", which is the default positioning.