[Dojo-checkins] bill - r3555 - trunk/src/widget

dojo-checkins-admin at dojotoolkit.org dojo-checkins-admin at dojotoolkit.org
Sat Apr 15 09:58:50 MDT 2006


Author: bill
Date: Sat Apr 15 09:58:49 2006
New Revision: 3555

Modified:
   trunk/src/widget/Dialog.js
Log:
on short pages, make the background at least as big as
the viewport size.

Modified: trunk/src/widget/Dialog.js
==============================================================================
--- trunk/src/widget/Dialog.js	(original)
+++ trunk/src/widget/Dialog.js	Sat Apr 15 09:58:49 2006
@@ -97,7 +97,9 @@
 
 		sizeBackground: function() {
 			if(this.bgOpacity > 0) {
-				var h = document.documentElement.scrollHeight || document.body.scrollHeight;
+				var h = Math.max(
+					document.documentElement.scrollHeight || document.body.scrollHeight,
+					dojo.html.getViewportHeight());
 				var w = dojo.html.getViewportWidth();
 				this.bg.style.width = w + "px";
 				this.bg.style.height = h + "px";


More information about the Dojo-checkins mailing list