Menu

#2944 panedwindow resize problem with text -setgrid 1

obsolete: 8.5.10
open
5
2011-12-28
2011-12-28
No

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.

Discussion

  • Joachim Woelk

    Joachim Woelk - 2011-12-28

    Example code for the problem

     
  • Victor Gaydov

    Victor Gaydov - 2012-11-30

    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.

     
  • Victor Gaydov

    Victor Gaydov - 2012-11-30

    -- 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

     
  • Francois VOGEL

    Francois VOGEL - 2012-12-01

    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.

     
MongoDB Logo MongoDB