| Description: |
According to the current version (1.39) of the canvas documentation for the -width option of window items: 'If this option is not specified, or if it is specified as an empty string, then the window is given whatever width it requests internally.'
However, specifying an empty string gives an error message: 'bad screen distance ""'
It seems the described result is achieved by specifying a width of 0 instead of an empty string.
% grid [canvas .c]
% .c create window 10 10 -window [button .b] -width {}
bad screen distance ""
% set errorInfo
bad screen distance ""
(processing "-width" option)
invoked from within
".c create window 10 10 -window [button .b] -width {}"
A similar problem exists for the -height option.
|