Author: eallen
Date: 2009-03-30 17:06:42 -0400 (Mon, 30 Mar 2009)
New Revision: 3237
Modified:
mgmt/trunk/cumin/resources/app.css
mgmt/trunk/cumin/resources/app.js
Log:
Added support for javascript notification functions when widget is made full page.
Modified: mgmt/trunk/cumin/resources/app.css
===================================================================
--- mgmt/trunk/cumin/resources/app.css 2009-03-30 21:05:09 UTC (rev 3236)
+++ mgmt/trunk/cumin/resources/app.css 2009-03-30 21:06:42 UTC (rev 3237)
@@ -481,13 +481,11 @@
div.fullpaged {
background-color: white;
- border: 10px solid white; /* instead of padding */
- -moz-border-radius: 3px;
- width: 96%;
- height: 90%;
+ border: 10px solid white;
+ width: 98%;
position: absolute;
- left: 10px;
- top: 10px;
+ left: 0px;
+ top: 0px;
z-index: 201;
}
@@ -538,8 +536,9 @@
z-index: 1;
}
div.fullpageBack {
- background-color: black;
- opacity: .8;
+/* background-color: black;
+ opacity: .8; */
+ background-color: white;
position: absolute;
width: 100%;
height: 100%;
Modified: mgmt/trunk/cumin/resources/app.js
===================================================================
--- mgmt/trunk/cumin/resources/app.js 2009-03-30 21:05:09 UTC (rev 3236)
+++ mgmt/trunk/cumin/resources/app.js 2009-03-30 21:06:42 UTC (rev 3237)
@@ -56,6 +56,13 @@
outer.widgetPaths.push(widget.get("id"));
}
});
+
+ if (element.onfullpage) {
+ outer.onfullpage = element.onfullpage;
+ }
+ if (element.onrestore) {
+ outer.onrestore = element.onrestore;
+ }
}
});
@@ -86,9 +93,12 @@
oFullPage.originalParent.appendChild(oFullPage);
oFullPage.getElement("p.fullpageIcon").setProperty("title", "Full
Page");
setFullpageParam(false, oFullPage);
+ var onrestore = oFullPage.onrestore;
+ if (onrestore) onrestore();
} else {
// make it full page
oBack.style.display = "block";
+ oBack.style.height = Math.max($(document.body).getCoordinates().height,
window.getScrollSize().y) + "px";
oFullPage.id = "fullpage";
oFullPage.className = "fullpaged";
@@ -96,6 +106,8 @@
document.body.appendChild(oFullPage);
oFullPage.getElement("p.fullpageIcon").setProperty("title",
"Minimize");
setFullpageParam(true, oFullPage);
+ var onfullpage = oFullPage.onfullpage;
+ if (onfullpage) onfullpage($(oFullPage).getCoordinates().width);
}
}
Show replies by date