diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/dialog/dialog_defaults.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit/dialog/dialog_defaults.js b/tests/unit/dialog/dialog_defaults.js index 2b107a6a0..cba514fe7 100644 --- a/tests/unit/dialog/dialog_defaults.js +++ b/tests/unit/dialog/dialog_defaults.js @@ -22,7 +22,13 @@ 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); + } + } }, resizable: true, show: null, |