Tk Source Code

View Ticket
Login
Ticket UUID: 1818441
Title: combobox wrong in detached window
Type: Bug Version: obsolete: 8.5b2
Submitter: dkf Created on: 2007-10-23 10:40:36
Subsystem: 88. Themed Tk Assigned To: jenglish
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2007-10-24 06:24:23
Resolution: Fixed Closed By: hobbs
    Closed on: 2007-10-23 23:24:23
Description:
Run the widget demo. Run the toolbar demo within it. Tear off the toolbar. Now try to use the combobox's drop-down list. Observe the fact that it is now clipped by the toplevel (or is that the combobox?) Kill the toolbar so that it is re-docked. Observe the fact that the drop-down list is still clipped.

This Is Not Good.
User Comments: hobbs added on 2007-10-24 06:24:23:
Logged In: YES 
user_id=72656
Originator: NO

* library/ttk/combobox.tcl (ttk::combobox::PopdownWindow): redo wm
transient on each drop to handle reparent-able frames. [Bug 1818441]

dkf added on 2007-10-24 06:11:26:
Logged In: YES 
user_id=79902
Originator: YES

Stranger and stranger. Tearing off and using the combobox works, even after reattachment. But tear off *again* and you've hit the bug. Basically, the bug happens if the drop down is used, the combobox is torn off, and the drop down used again. (Presumably because the combobox is keeping a reference to the drop down window which ends up being Not Right after a tearoff, but this is just surmise.)

hobbs added on 2007-10-24 05:51:21:
Logged In: YES 
user_id=72656
Originator: NO

Interesting quirk ... If I first tear off the toolbar before trying the combobox dropdown, it works, then still works when reattached.  It only gets wonky after it was ripped off again.

dkf added on 2007-10-24 05:14:34:
Logged In: YES 
user_id=79902
Originator: YES

WinXP SP2 (built with msys by myself from the HEAD if that matters).

jenglish added on 2007-10-23 23:15:44:
Logged In: YES 
user_id=68433
Originator: NO

What platform is this?  Can't replicate here (X11, on Linux).