Author: croberts
Date: 2013-03-14 14:48:42 +0000 (Thu, 14 Mar 2013)
New Revision: 5738
Modified:
trunk/cumin/resources/app.js
Log:
Additional tweak for bz 911503 that is needed to reset charts to their original size after
being expanded to full page.
Modified: trunk/cumin/resources/app.js
===================================================================
--- trunk/cumin/resources/app.js 2013-03-12 21:36:19 UTC (rev 5737)
+++ trunk/cumin/resources/app.js 2013-03-14 14:48:42 UTC (rev 5738)
@@ -318,14 +318,17 @@
oFullPage.originalParent.appendChild(oFullPage);
oIcon.setProperty("title", "Full Page");
setFullpageParam(false, oFullPage);
- $(oFullPage).getElement(".jqplotgraph").setProperty("style",
"width:400px;height:150px;");
+ var origStyle =
$(oFullPage).getElement(".jqplotgraph").getProperty("origStyle");
+ $(oFullPage).getElement(".jqplotgraph").setProperty("style",
origStyle);
drawSingleChart($(oFullPage).getElement(".jqplotgraph"), false);
var onrestore = oFullPage.onrestore;
if (onrestore) onrestore();
window.scrollTo(oFullPage.origScroll.x, oFullPage.origScroll.y);
} else {
// make it full page
-
+ var origStyle =
$(oFullPage).getElement(".jqplotgraph").getProperty("style");
+ $(oFullPage).getElement(".jqplotgraph").setProperty("origStyle",
origStyle);
+
oBack.style.display = "block";
oBack.style.height = Math.max($(document.body).getCoordinates().height,
window.getScrollSize().y) + "px";
document.body.style.height = "100%";
Show replies by date