The grid information provided to the window manager if
-setgrid is used may be incorrect. The window manager
is given information based on the requested size, not
the actual size. It may also become confused by resizes
if the gridded window does not get all the size-change.
The consequences may be serious since if the window
actually becomes much bigger than requested then it may
be impossible to scale it down to a reasonable size
since minsize is based on when tk thinks the window
will be 1x1.
I have attached a compressed tarfile which contains two
demostration scripts and a patch. The demonstration
scripts each puts up a paned window (implemented with
pack and panedwindow) containing a listbox and a text
widget. Radiobuttons allows one to switch the widget
controlling the grid. Try resizing the window and
notice that the grid information in the window manager
often is completely wrong.
I have tested this on Unix (ctwm). The patch includes
code for Mac and Windows(empty functions) but I have
not been able to test these parts. The patch defines a
new function Tk_UpdateGrid() which the listbox and text
widgets calls whenever they are resized. I also
modified the internal UpdateSizeHints() function to
either use the requested size or the actual size.
Compressed tarfile containing demonstration programs and a patch