How to prevent Grid scroll position jump on cell editor start

Hi,

when I start a cell editor of a wx.Grid that is not at top-left scroll
position, the scroll position of the Grid changes. I would expect the
Grid not to change its scroll position unless the cell is not fully
visible. The behavior can be observed e.g. using the first grid
example of the demo.

I tried getting around this by re-setting the Grid manually on
wx.grid.EVT_GRID_CMD_EDITOR_SHOWN, but then the grid jumps for an
instant before getting to the correct scroll position again. This
results in a rather annoying flicker effect.

How can I keep the grid in position when activating a cell editor?

I am using Debian unstable (AMD64) with:
wxPython 2.8.10.1
(wxGTK, unicode, gtk2, wx-assertions-off, SWIG-1.3.29)
Running on Python 2.5.5

Cheers

Martin

I think this may have been fixed with 2.8.11. If not then feel free to create a ticket for this issue at wxTrac. See wxTrac has been migrated to GitHub Issues - wxWidgets

···

On 6/21/10 3:24 PM, Martin Manns wrote:

Hi,

when I start a cell editor of a wx.Grid that is not at top-left scroll
position, the scroll position of the Grid changes. I would expect the
Grid not to change its scroll position unless the cell is not fully
visible. The behavior can be observed e.g. using the first grid
example of the demo.

I tried getting around this by re-setting the Grid manually on
wx.grid.EVT_GRID_CMD_EDITOR_SHOWN, but then the grid jumps for an
instant before getting to the correct scroll position again. This
results in a rather annoying flicker effect.

How can I keep the grid in position when activating a cell editor?

I am using Debian unstable (AMD64) with:
wxPython 2.8.10.1
(wxGTK, unicode, gtk2, wx-assertions-off, SWIG-1.3.29)
Running on Python 2.5.5

--
Robin Dunn
Software Craftsman