[racket-dev] list-box% not properly sized

From: Marijn (hkBst at gentoo.org)
Date: Thu Sep 8 05:16:50 EDT 2011

Hi Matthew,

On 09/01/11 10:31, Marijn wrote:
> Hi list,
> 
> list-box%es are not properly sized; the following code:

I think you pushed a patch to change this. Currently the list-box as
coded below has a minimum size of three items. Unfortunately the scroll
bar seems to have a minimum size which is unusably large. There are 8
items in the list, but only 3 are shown and the scroll bar at ~99% size
and only serves to scroll to the last 3 items. Scrolling back up doesn't
work (the small ^ and v seem to work fine).

> #lang racket/gui
> 
> (define root (new frame% (label "choice widgets")))
> 
> (define list-box (new list-box% (parent root) (label "List-box: ")
> (style '(multiple)) (choices '("1" "b" "C3" "44" "five" "6" "seven" "OO"))))
> 
> (send root show #t)

New screenshot attached.

Marijn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-in-list-box-display2.png
Type: image/png
Size: 5082 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110908/2f7eec12/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110908/2f7eec12/attachment.sig>

Posted on the dev mailing list.