We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9060c commit a68d5caCopy full SHA for a68d5ca
tests/unit/dialog/dialog_events.js
@@ -325,4 +325,20 @@ test("beforeClose", function() {
325
el.remove();
326
});
327
328
+// #8789 and #8838
329
+asyncTest("ensure dialog's container doesn't scroll on resize and focus", function() {
330
+ expect(2);
331
+
332
+ var el = $('#dialog1').dialog(),
333
+ initialScroll = $(window).scrollTop();
334
+ el.dialog('option', 'height', 600);
335
+ equal($(window).scrollTop(), initialScroll, "scroll hasn't moved after height change");
336
+ setTimeout( function(){
337
+ $(".ui-dialog-titlebar-close").simulate('mousedown');
338
+ equal($(window).scrollTop(), initialScroll, "scroll hasn't moved after focus moved to dialog");
339
+ el.dialog('destroy');
340
+ start();
341
+ }, 500);
342
+});
343
344
})(jQuery);
0 commit comments