[racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Dec 3 10:23:42 EST 2014

I believe the issue is that the underlying Cocoa widget doesn't stretch
vertically. Even tough `racket/gui` asks the button to be taller, Cocoa
draws the button the at the original height.

There's an alternative button style that does stretch, and `racket/gui`
falls back to that alternative style when the button font is at least
two pixels bigger than the default font size. We could add a style flag
to `button%` to enable the stretchable style, but I don't think it
would look right (for buttons that are meant to follow the default
system look) to use the stretchable style by default.

At Wed, 03 Dec 2014 14:59:15 +0000, Stephen De Gabrielle wrote:
> Is anyone else getting this bug?
> 
> On OS X buttons stretch horizontally, but not vertically
> 
> Cheers,
> Stephen
> 
> Test
> #lang racket/gui
> 
> ;;; The top-level frame
> (define frame
>   (instantiate frame%
>     ("Test")))
> 
> (new button%
>      [label "Stretchy Button  :)"]
>      [parent frame]
>      (stretchable-width #t)
>      (stretchable-height #t)
>      [min-height 300]
>      (callback
>       (lambda (button event)
>         (printf "doesnt stretch vertically:("))))
> 
> ;;; Show the top-level frame.
> (send frame show #t)
> 
> ---------- Forwarded message ---------
> From: <bugs at racket-lang.org>
> Date: Mon, 1 Dec 2014 at 23:20
> Subject: Re: [racket-bug] all/14865: Instances of button% don't not respond
> to (stretchable-height #t) and [min-height 300].
> To: <spdegabrielle at gmail.com>
> 
> 
> Thank you very much for your problem report.
> It has the internal identification `all/14865'.
> You can check on the status of your problem report at
>   http://bugs.racket-lang.org/query/?cmd=view&pr=14865
> 
> If you wish to provide further information regarding this problem
> you can do so as a reply to this message.  (But please make sure
> that your mailer replies to both "bugs" and "bug-notification".)
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.