Scrollbar problem with commercial version - CPU 100%
There are times it seems the grid is caught in the middle of whether to display scrollbars, and it continuously refreshes, causing the CPU to max out at 100%. The grid appears to flicker while it's happening. Sometimes adjusting the width of a column will make it stop. It also seems like it may have something to do with the precise height of the grid. Any ideas?
Friday, November 19, 2004
Tim, yes, I believe it is possible, but I could not replicate the problem. Do you have any example which I can look at?
Sunday, November 28, 2004
The following example will reproduce the behavior. I'm using IE 6.0. Thanks.
// create ActiveWidgets data model - XML-based table
var table = new Active.XML.Table;
// get reference to the xml data island node
var node = document.getElementById("xmldata");
xml = node;
// provide data XML
var cols = ["TASKID","STEPTYPE","TASKNUMBER","NAME","RECEIVEDATE","DUEDATE","ALIAS","ASSIGNEE","STATUS", "COMPLETEDATE", "ACTUALUSER", "APPROVALTYPEIMAGE", "FYI"];
var taskGrid = new Active.Controls.Grid;
If you keep the default setting for the grid width (100%) you have to explicitly set the width of the parent element - otherwise it goes to the loop trying to adjust its width and scroll size, while the parent size also changes back and forth.