ListCtrl EnsureVisible does not seem to work

[Originally post a couple of weeks ago without getting a reply]

I see EnsureVisible failing to work as well.

My example code is pysvn Workbench. Its checkin dialog will be off by one line
if you are checking in more files then fit in the dialog box. (Yes I know this is hardly
a small example).

This has been reported to me as a problem on Windows XP and I have reproduced it
on Mac OS X.

I’m using wxPython 2.8.10.1 with python 2.6 on Mac OS X 10.6.5.

The case I’ve reproduced EnsureVisible is called with 0 which
I assume is the index of the first row in the list control.

The code in question is in wb_subversion_list_handler_common.py
at line 326.

Barry

Barry,

        [Originally post a couple of weeks ago without

getting a reply]

I see EnsureVisible failing to work as well.

          My example code is pysvn Workbench. Its checkin

dialog will be off by one line

          if you are checking in more files then fit in the

dialog box. (Yes I know this is hardly

  a small example).



          This has been reported to me as a problem on Windows

XP and I have reproduced it

  on Mac OS X.



          I'm using wxPython 2.8.10.1 with python 2.6 on Mac

OS X 10.6.5.

          The case I've reproduced EnsureVisible is called

with 0 which

          I assume is the index of the first row in the list

control.

          The code in question is in

wb_subversion_list_handler_common.py

  at line 326.
Probably no one when and looked at

wb_subversion_list_handler_common.py.

If list.EnsureVisible is called with "0" is the list showing the

first item in your list? If yes, then EnsureVisible is doing its
job, but whoever calls it is giving it the wrong index value.

Can you show the problem by e.g. changing the demo of

ListCtrl_virtual or by providing a small sample
().
Werner

···

http://wiki.wxpython.org/MakingSampleApps