Skip to main content

Search and Top Navigation

#10918 closed bug (notabug)

Opened January 30, 2015 01:28PM UTC

Closed January 30, 2015 01:42PM UTC

Last modified January 30, 2015 06:37PM UTC

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.

Attachments (0)
Change History (3)

Changed January 30, 2015 01:42PM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed

null is not a valid value in either version.

Changed January 30, 2015 06:36PM UTC by vergules comment:2

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.

Changed January 30, 2015 06:37PM UTC by scottgonzalez comment:3

Replying to [comment:2 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.