[racket-dev] strange/wrong placement and sizing in racket/gui

From: Marijn (hkBst at gentoo.org)
Date: Tue Jun 21 03:50:36 EDT 2011

On 06/20/11 18:29, Matthew Flatt wrote:
> I think I've found the problem and pushed a fix.

Thanks for the quick fix Matthew! 1) 2) and 3) are now working fine :)
but I do believe borders are still broken. For example:


#lang racket/gui

(define root (new frame% (label "Label")))

(define vp
  (new vertical-panel% (parent root) (vert-margin 5) (style '(border))))

(define vp2
  (new vertical-panel% (parent vp) (horiz-margin 5) (style '(border))))

(define vp3
  (new vertical-panel% (parent vp2) (vert-margin 5) (style '(border))))

(define btn
  (new button% (parent vp3) (label "button") (horiz-margin 5)))

(send root show #t)


produces the attached window with just a button, but no borders for any
of the panels...

Marijn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drracket_noborders.png
Type: image/png
Size: 3055 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110621/d9e3bff0/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/20110621/d9e3bff0/attachment.sig>

Posted on the dev mailing list.