Dialog: Updated test for default position option. QUnit still fails the test though.

This commit is contained in:
Scott González 2010-07-14 16:38:16 -04:00
parent 6de9a5368c
commit 96e78a2cb7

View File

@ -17,7 +17,19 @@ var dialog_defaults = {
minHeight: 150,
minWidth: 150,
modal: false,
position: 'center',
position: {
my: 'center',
at: 'center',
of: window,
collision: 'fit',
// ensure that the titlebar is never outside the document
using: function(pos) {
var topOffset = $(this).css(pos).offset().top;
if (topOffset < 0) {
$(this).css('top', pos.top - topOffset);
}
}
},
resizable: true,
show: null,
stack: true,