Tk Library Source Code

View Ticket
Login
Ticket UUID: 2999764
Title: ListBox: icon out of view on keybord select
Type: Bug Version: None
Submitter: oehhar Created on: 2010-05-11 06:39:33
Subsystem: bwidget Assigned To: oehhar
Priority: 2 Severity:
Status: Closed Last Modified: 2010-05-11 14:22:47
Resolution: Fixed Closed By: oehhar
    Closed on: 2010-05-11 07:22:47
Description:
Test script:
ListBox::create .l -multicolumn 0 -selectmode single -width 5 -redraw 1
pack .l
.l insert end list:#auto -text 1 -image [Bitmap::get file]
.l insert end list:#auto -text 2 -image [Bitmap::get file]
.l insert end list:#auto -text 1234567890 -image [Bitmap::get file]
.l insert end list:#auto -text 4 -image [Bitmap::get file]

Good behaviour: when selecting the entry with the long text with the mouse, the icon is still visible and the text is clipped on the right
Issue: when selecting this item by keyboard (up/down), the listbox scrolls right and puts the icons out of view.
User Comments: oehhar added on 2010-05-11 14:22:47:
The issue was the see method, which showed only the text and not an eventual present icon or window.
The attached fix resolves the issue.

oehhar added on 2010-05-11 14:21:38:

File Added - 373523: listbox-1.9.0.patch

Attachments: