[rhmessaging-commits] rhmessaging commits: r3329 - mgmt/trunk/cumin/resources.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Apr 23 17:21:50 EDT 2009


Author: eallen
Date: 2009-04-23 17:21:50 -0400 (Thu, 23 Apr 2009)
New Revision: 3329

Modified:
   mgmt/trunk/cumin/resources/app.js
Log:
Allow fullpaged stacked charts to be between 200 and 600 px tall.

Modified: mgmt/trunk/cumin/resources/app.js
===================================================================
--- mgmt/trunk/cumin/resources/app.js	2009-04-23 20:33:39 UTC (rev 3328)
+++ mgmt/trunk/cumin/resources/app.js	2009-04-23 21:21:50 UTC (rev 3329)
@@ -185,7 +185,8 @@
             setFullpageParam(true, oFullPage);
             var onfullpage = oFullPage.onfullpage;
             var coords = $(oFullPage).getCoordinates();
-            if (onfullpage) onfullpage(coords.width, coords.height);
+            var height = Math.min(Math.max(window.getSize().y - 100, 200), 600);
+            if (onfullpage) onfullpage(coords.width, height);
         }
     }
 




More information about the rhmessaging-commits mailing list