Skip to main content

Bug Tracker

Side navigation

Ticket #2826: ui.dialog.js.patch


File ui.dialog.js.patch, 0.6 KB (added by tyler, May 08, 2008 06:35PM UTC)

patch, u can haz

Index: jquery.ui/ui.dialog.js
===================================================================
--- jquery.ui/ui.dialog.js 
+++ jquery.ui/ui.dialog.js 

@@ -178,5 +178,5 @@
 		
 		position: function(pos) {
-			var wnd = $(window), doc = $(document), minTop = top = doc.scrollTop(), left = doc.scrollLeft();
+			var wnd = $(window), doc = document.body, minTop = top = doc.scrollTop, left = doc.scrollLeft;
 			if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) {
 				pos = [pos == 'right' || pos == 'left' ? pos : 'center', pos == 'top' || pos == 'bottom' ? pos : 'middle'];

Download in other formats:

Original Format