Grid and float left problem
Bill Smith
August 30,
When you start a DIV, then try and to JavaScript in the middle of it, things get out of whack. Or at best are not predictable. I suggest that you create the DIV's and set all their properties, including ID's. Then after the divs have closed, do the JavaScript and place the output into the div. So your code will look like this:
<body>
<div id="mywidget">
<div id="mytree">
</div>
<div id="mylist">
</div>
</div>
<script>
var obj = new Active.Controls.Grid;
obj.setRowProperty("count", 20);
obj.setColumnProperty("count", 5);
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
obj.setColumnHeaderHeight("20px");
obj.setAction("click", function(src){window.status = src.getItemProperty("text")});
document.getElementById("mylist").innerHTML = obj;
</script>
</body>
don't know if this will solve your problem but it might help.
Jim Hunter
August 30,
Floating divs will make your your page looks like a pinball game in firefox. The rendering in Firefox is done on many ocasions and this is visilble for the user. It looks like all element are starting at the top and moved to their final position (looks like flashing).
John Ophof http://open-modeling.sourceforge.net
August 31,
I tried adding the the table after the closing body tag as described above. Same result. I'm going to give using a table a try.
Bill Smith
August 31,
Bill,
grid does not work in your examples because you are using strict DOCTYPE. The current version works in quirks more only (version 2.0 will support strict).
Alex (ActiveWidgets)
August 31,
Thanks Alex. That fixed it.
Bill Smith
August 31,