Author: ndkhoiits
Date: 2010-05-11 02:46:23 -0400 (Tue, 11 May 2010)
New Revision: 3037
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js
Log:
GTNPORTAL-1061 Set gadget's height is 800px if current view is canvas and gadget's
height is not set
Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js 2010-05-11
05:03:42 UTC (rev 3036)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js 2010-05-11
06:46:23 UTC (rev 3037)
@@ -40,6 +40,10 @@
//-----------------------------------------
var gadget;
if (metadata != null) {
+ // Check if gadget's height is not set and current view is canvas. By
default, gadget's height is 800px
+ if(metadata.gadgets[0].height == 0 && view == 'canvas') {
+ metadata.gadgets[0].height = "800px";
+ }
gadget = gadgets.container.createGadget({specUrl: url,height:
metadata.gadgets[0].height, secureToken: metadata.gadgets[0].secureToken, view: view});
gadget.metadata = metadata.gadgets[0];
} else {
Show replies by date