Ian,

I found a weird bug with listboxes snapping to an odd location in the
middle of a large selectable widget.

The setup:
Listbox (maxcol, maxrow): (115, 31)

The contents of the listbox:
widget 0: selectable, 1 row.
widget 1: not selectable, 1 row
widget 2: selectable, 55 rows
widget 3: not selectable, 1 row
(there's more widgets, in my setup, but they are of no consequence).

Steps:
Scroll upwards so widget 0 is in focus.
Press down once.

Result:
The bottom of widget 2 is at the bottom of the screen, and the top
half of the widget is scrolled off screen.

Expected result:
Focus moves to widget 2 and no scrolling takes place.


Attached is a patch which fixes the problem for me.

Dominic

Attachment: urwid-listbox_snap_fix.patch
Description: Binary data

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to