Vertical scrollbar does not show in Multilined Grid
Should one have a grid with multilined cells, the vertical scrollbar does not appear if the height of all the rows is larger than that of the grid:
Here is the script:
Here is the CSS:
How can I get the scrollbar to display?
Here is the script:
var myColumns = ["Column 1", "Column 2"];
var myData = [
["Text","<strong>Heading</strong><br />Content<br />Content"],
["Text","<strong>Heading</strong><br />Content<br />Content"],
["Text","<strong>Heading</strong><br />Content<br />Content"],
["Text","<strong>Heading</strong><br />Content<br />Content"],
["Text","<strong>Heading</strong><br />Content<br />Content"],
["Text","<strong>Heading</strong><br />Content<br />Content"]
];
var grid = new AW.UI.Grid;
var str = new AW.Formats.String;
var html = new AW.Formats.HTML;
grid.setHeaderText(myColumns);
grid.setCellData(myData);
grid.setCellFormat([str, html]);
grid.setRowCount(myData.length);
grid.setColumnCount(myColumns.length);
grid.setSelectionMode("single-row");
grid.getRowTemplate().setClass("text", "wrap");
document.write(grid);
Here is the CSS:
.aw-control-grid {font: menu;width: 100%; height: 350px; border: 1px inset; background: white}
.aw-grid-column {border-right: 1px solid threedlightshadow;}
.aw-grid-cell {border-right: 1px solid threedlightshadow;}
.aw-grid-row {border-bottom: 1px solid threedlightshadow;}
.aw-row-selector {text-align: center}
.aw-grid-row {
_overflow: visible;
}
.aw-grid-row.gecko {
display: -moz-box;
height: auto;
width: auto;
min-width: 100%;
}
.aw-grid-control .aw-item-text {
vertical-align: top;
}
How can I get the scrollbar to display?
Neil Craig
June 15,