PDA

View Full Version : grid scroll error if lock column



dave0224
5 Jul 2007, 9:57 AM
in example

old code


edit-grid.js
var cm = new Ext.grid.ColumnModel([{
header: "Common Name",
dataIndex: 'common',
width: 220,
editor: new Ed(new fm.TextField({
allowBlank: false
}))
.........
edit-grid.html
<div id="grid-panel" style="width:600px;height:300px;">
<div id="editor-grid"></div>
</div>




new code



var cm = new Ext.grid.ColumnModel([{
header: "Common Name",
dataIndex: 'common',
width: 220,locked :true ,css: 'white-space:normal;',
editor: new Ed(new fm.TextField({
allowBlank: false
}))

edit-grid.html

<div id="grid-panel" style="width:350px;height:300px;">
<div id="editor-grid"></div>
</div>


if i lock the column and decrease the div width.
i enter tab to move next editor.

the error window is in the attached file

dave0224
10 Jul 2007, 6:50 AM
is it a bug ? have any solution to avoid it ..?

jack.slocum
10 Jul 2007, 7:56 PM
This is a known issue in 1.x that has no known workaround. The column locking breaks typical scrolling behavior when using keybaord nav.