:: Forum >> Version 2 >>

ActiveWidgets 2.5 Free Trial LayoutTemplate Bug

More information on this topic is available in the documentation section: /general.bugs/2-5.html.

-------------------------------------------------------------------
<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
Sunday, December 2, 2007
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)
Tuesday, December 4, 2007
fixed in AW 2.5.1
Alex (ActiveWidgets)
Tuesday, December 11, 2007



This topic is archived.

Back to /general.bugs/2-5.html

Documentation:

Forum search