diff options
author | ericm <ericm@noemail.net> | 1999-11-24 00:20:13 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 1999-11-24 00:20:13 (GMT) |
commit | 0e1559dd48dcff612039fd911848fc210da3d9dd (patch) | |
tree | 0bdfa001712e24cd9caf5fe282b7b63b9aa0ef1c /generic | |
parent | 051bac4d1e1ac7f928f7e7be73a7b48b6b7b3be6 (diff) | |
download | tk-0e1559dd48dcff612039fd911848fc210da3d9dd.zip tk-0e1559dd48dcff612039fd911848fc210da3d9dd.tar.gz tk-0e1559dd48dcff612039fd911848fc210da3d9dd.tar.bz2 |
Additions to update vertical scrollbar info for listboxes when listvar changes.
FossilOrigin-Name: 4a5e66a5c23b0c7145266e7686000b000451ac75
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkListbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index 6f4f1ec..ced0620 100644 --- a/generic/tkListbox.c +++ b/generic/tkListbox.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkListbox.c,v 1.11 1999/11/23 23:52:13 hobbs Exp $ + * RCS: @(#) $Id: tkListbox.c,v 1.12 1999/11/24 00:20:13 ericm Exp $ */ #include "tkPort.h" @@ -3193,6 +3193,10 @@ ListboxListVarProc(clientData, interp, name1, name2, flags) } } + if (oldLength != listPtr->nElements) { + listPtr->flags |= UPDATE_V_SCROLLBAR; + } + /* * The computed maxWidth may have changed as a result of this operation. * However, we don't want to recompute it every time this trace fires |