Subject: | Problem selecting last entry in dropdown list |
Date: | Sat, 29 Aug 2020 15:21:40 +0200 |
To: | bug-Tk [...] rt.cpan.org |
From: | "J.J. Berkhout" <j.j.berkhout [...] staalenberk.nl> |
Hello,
I experience a funny problem in Tk::BrowseEntry:
The code:
($Be = $mw -> BrowseEntry (-variable => \$w_post, -autolistwidth => 1,
-choices => \@posten, -state => 'readonly', -listheight => scalar
(@posten))) -> pack;
@posten is an array with 16 elements. If I select the last element in
the dropdown list, it is not entered in the entry of BrowseEntry. All
other choices are no problem. I can 'solve' this by either remove the
listheight option (and getting a scrollbar) or making the listheight one
more than the number of elements in @posten. In the last case, an empty
line appears at the bottom of the dropdown list and clicking on this
line selects the last element in @posten, the same as clicking on the
last element itself.
Environment:
OS: Linux Mint 19.3 Cinnamon, kernel 4.15.0-112
perl-tk/bionic,now 1:804.033-2build1 amd64
Is this a bug or a problem with my code?