Font Size and Row Height
Hi
I want to change the size of the font in the grid, but whenever I do, the row height is too small. The row height is increased but it isn't. The text is cut off half way thru.
<style>
.active-controls-grid {font-size: 25px;}
.active-column-0 {width: 100px;}
.active-column-1 {width: 200px;}
.active-column-2 {text-align: right;}
.active-scroll-left .active-templates-item,.active-scroll-data .active-templates-row {height: 60px;}
.active-grid-row {border-bottom: 1px solid threedlightshadow #FF0000;}
</style>
<script>
var myData = [["Test1","Test2","Test3"];
var myColumns = ["COL1", "COL2", "COL3"];
var obj = new Active.Controls.Grid;
obj.setRowProperty("count", 1);
obj.setColumnProperty("count", 3);
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
obj.setRowHeaderWidth("0px");
obj.setColumnHeaderHeight("30px");
obj.setAction("click", function(src){window.status = src.getItemProperty("text")});
document.write(obj);
</script>
Can some please help. I am pulling my hair out over this.
Cheers
I want to change the size of the font in the grid, but whenever I do, the row height is too small. The row height is increased but it isn't. The text is cut off half way thru.
<style>
.active-controls-grid {font-size: 25px;}
.active-column-0 {width: 100px;}
.active-column-1 {width: 200px;}
.active-column-2 {text-align: right;}
.active-scroll-left .active-templates-item,.active-scroll-data .active-templates-row {height: 60px;}
.active-grid-row {border-bottom: 1px solid threedlightshadow #FF0000;}
</style>
<script>
var myData = [["Test1","Test2","Test3"];
var myColumns = ["COL1", "COL2", "COL3"];
var obj = new Active.Controls.Grid;
obj.setRowProperty("count", 1);
obj.setColumnProperty("count", 3);
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
obj.setRowHeaderWidth("0px");
obj.setColumnHeaderHeight("30px");
obj.setAction("click", function(src){window.status = src.getItemProperty("text")});
document.write(obj);
</script>
Can some please help. I am pulling my hair out over this.
Cheers
Chris Mitchell
September 9,