:: Forum >>

Resize bug with 2.5.3

Hi,

If I use grid.resize() to resize the grid, it results in some problems with scrolling.
When navigating using the keyboard or mouse after resizing, the scrolling occurs as if the grid was at its previous size.
With virtual mode on, some of the cells are visible but not populated with data.
Its a little difficult to explain, so I've put up the code for you to see at http://www.motreja.com/ankur/aw/index.html (it will resize in 3 seconds after loading)

The code used is given below.
Any solutions to this problem ?
I've tried it in FireFox 3.0.4 and IE7

Thanks,
Ankur

<html>
<head>

<script src="activewidgets/runtime/lib/aw.js"></script>
<link href="activewidgets/runtime/styles/xp/aw.css" rel="stylesheet"></link>

</head>
<body>

<script>

var obj = new AW.Grid.Extended;

var myColumns = [
    "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"
];

obj.setCellText(function(i, j){return j + "-" + i});

obj.setHeaderText(myColumns);

obj.setRowCount(40);
obj.setColumnCount(20);

obj.setFixedLeft(0);

document.write(obj);

obj.setSize(400, 200);

window.setTimeout("resize()", 3000);

function resize() {

obj.setSize(800, 400);
obj.refresh();

}

</script>

</body>
Ankur Motreja
Sunday, November 16, 2008
Hi Ankur
I finally used what Alex suggested in :
http://www.activewidgets.com/javascript.forum.23305.3/aw-2-5-2-scrolling.html

HTH
Carlos
Sunday, November 16, 2008
Hi,

Thanks Carlos !!
That works perfectly.

Thanks,
Ankur
Ankur Motreja
Sunday, November 16, 2008

This topic is archived.


Back to support forum

Forum search