A panedwindow contains two frames, of which one is a text widget created with "-setgrid 1". When the top-level window is resized by more than about 20 pixel at a time, dragging the sash of the panedwindow also resizes the top-level window. Seen on Windows XP SP3 with Tcl/Tk 8.5.9 and 8.5.11. Omit the option "-setgrid 1" from the text widget command, and the problem is gone. That's ok for me. But I would like to have the problem documented, at least. The problem seems related to ID 1161543, where listboxes were used instead of a text.
Example code for the problem
I can reproduce this bug on 8.5 and 8.6 (using Tk from debian).
If window contains panewindow or tixPanedWindow and one pane is with "-setgrid 1", top-level window can't be resized completely.
-- Example --
panedwindow .p -orient vertical
text .p.e1 -setgrid 1
frame .p.e2
.p add .p.e1
.p add .p.e2
pack .p -fill both -expand 1
1161543 is closed and appears to be fixed for me.
However, replacing the text widget by a listbox in your example below triggers the buggy behavior that is reported by the OP.