3.2.0

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
November 16,
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
November 16,
Hi,

Thanks Carlos !!
That works perfectly.

Thanks,
Ankur
Ankur Motreja
November 16,

This topic is archived.

See also:


Back to support forum