Skip to main content

Search and Top Navigation

#5212 closed bug (worksforme)

Opened February 22, 2010 08:57AM UTC

Closed February 23, 2010 02:25PM UTC

Last modified February 27, 2010 10:19AM UTC

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 February 22, 2010 08:58AM UTC.

    Dialog placement after opening in 1.8rc2

Change History (2)

Changed February 23, 2010 02:25PM UTC by scottgonzalez comment:1

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.

Changed February 27, 2010 10:19AM UTC by dcramer comment:2

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.