]> source.dussan.org Git - jquery-ui.git/commitdiff
Updated test for default position option: Reference using-implementation, as QUnit...
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 15 Jul 2010 07:31:36 +0000 (09:31 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 15 Jul 2010 07:31:36 +0000 (09:31 +0200)
tests/unit/dialog/dialog_defaults.js

index cba514fe774c7e03725a7ce9416bc72f98e2eb09..612fd58c89c43f74d6f4d0e05b5a8b509989fad4 100644 (file)
@@ -22,13 +22,7 @@ var dialog_defaults = {
                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);
-                       }
-               }
+               using: $.ui.dialog.prototype.options.position.using
        },
        resizable: true,
        show: null,