Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10918 closed bug (notabug)

Dialog position has different default behaviour from Version 1.10.4

Reported by: vergules Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:

Description

$('#dlgTest').dialog({

modal: false, height: 200, width: 400, position: null

});

will place dialog at the top of window. Prior version would have it at default Center of window position. Passin undeifned instead of null works as prior version and puts dialog at center This change of behaviour started at version 1.11.x.

Change History (3)

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

Resolution: notabug
Status: newclosed

null is not a valid value in either version.

comment:2 Changed 8 years ago by vergules

Version 1.10.0 accepted null or undefined - the default position in this case is center of window. Version 1.11.x defaults to center only if undefined is used, this is a change that I was not aware of.

comment:3 in reply to:  2 Changed 8 years ago by Scott González

Replying to vergules:

Version 1.10.0 accepted null or undefined - the default position in this case is center of window.

No it didn't. The fact that it happened to work doesn't matter. Please read the docs for acceptable values.

Note: See TracTickets for help on using tickets.