Opened 15 years ago

Closed 15 years ago

#3181 closed bug (worksforme)

Centering a Modal dialog box

Reported by: [email protected] Owned by: Scott González
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});

Change History (1)

comment:1 Changed 15 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.