Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5212 closed bug (worksforme)

Dialog wont reposition position

Reported by: dcramer Owned by:
Priority: minor Milestone: 1.8
Component: ui.dialog Version: 1.8rc2
Keywords: dialog, position Cc:
Blocked by: Blocking:

Description

I'm having a problem with 1.8rc2 dialogs. The dialog opens and after it opens needs to set itself to the center. this works fine with 1.7 but in 1.8rc2 its opens at the bottom left of the screen. the following code worked fine to reposition itself to center but wont work in 1.8rc2.

$("#ui-dialog-notice").dialog({
	bgiframe: true,
	resizable: false,
	height:140,
	modal: true,
	buttons: {
		'Close': function() {
			$(this).dialog("close");
			}
		},
	close: function(event, ui) {
		$("#ui-dialog-notice").remove();	
	},
	open: function(event, ui) {
		$("#ui-dialog-notice").dialog('option', 'position', 'center');
	}
});

Attachments (1)

dialogbottom.JPG (75.6 KB) - added by dcramer 13 years ago.
Dialog placement after opening in 1.8rc2

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by dcramer

Attachment: dialogbottom.JPG added

Dialog placement after opening in 1.8rc2

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

Resolution: worksforme
Status: newclosed

This is working fine for me. Please attach a test case or create one using jsbin.com if you continue to have problems.

comment:2 Changed 13 years ago by dcramer

Embarrassing moment here - I also had included jquery dimentions 1.2 which was messing with the positioning. eventually solved the proble while using jsbin.com to recreate the case.

Note: See TracTickets for help on using tickets.