3.0 beta 2

ActiveWidgets 2.5 Free Trial LayoutTemplate Bug

-------------------------------------------------------------------
<html>
<head>
<script src="../../runtime/lib/aw.js"></script>
<link href="../../runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<script>
var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");

obj.setColumnCount(10);
obj.setRowCount(100);

obj.setCellEditable(true);

var toolbar = new AW.HTML.DIV;
toolbar.setId("toolbar");

toolbar.setContent("input", "text");

obj.defineTemplate("bottomLine", toolbar);

obj.setLayoutTemplate(new AW.Panels.Horizontal);
obj.setPanelTemplate(function(i){
switch(i){
case "center": return this.getScrollTemplate();
case "bottom": return this.getBottomLineTemplate();
}
});

obj.onPanelWidthChanged = function(width, panel){
this.getLayoutTemplate().changePanelWidth(width, panel);
};

obj.onPanelHeightChanged = function(height, panel){
this.getLayoutTemplate().changePanelHeight(height, panel);
};

obj.setPanelHeight(23, "bottom"); //bottom line

document.write(obj);
</script>
</body>
</html>
-------------------------------------------------------------------
"bottom" not display. Scroll error
SNOW
December 2,
Bottom line display could be fixed with -

.aw-ie .aw-grid-box {
padding-bottom: 0px;
}

Normally there is 50px bottom padding which is required for cases where the grid is inside html table tag.
Alex (ActiveWidgets)
December 4,
fixed in AW 2.5.1
Alex (ActiveWidgets)
December 11,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.