[racket] freeze and bounding boxes

From: Ryan Culpepper (ryan at cs.utah.edu)
Date: Wed Jan 18 21:25:22 EST 2012

In the docs from the last release (here: 
the grid is missing the right edge and the bottom edge. So perhaps this 
issue was recently fixed?


On 01/18/2012 07:05 PM, Robby Findler wrote:
> On Wed, Jan 18, 2012 at 5:22 PM, David Van Horn<dvanhorn at ccs.neu.edu>  wrote:
>> On 1/18/12 6:04 PM, Robby Findler wrote:
>>> Yes, that's the right behavior. See the end of the 2htdp/image docs
>>> about pixels and whatnot.
>> OK, it seems at odds with the note that freeze can "mpirove performance
>> without changing how the image draws," but I get that a square draws larger
>> than its bounding box so it gets cropped when frozen (or saved to a file).
> I've clarified that in the docs.
>> By the way, I think you can see this phenomenon in the rendering of the
>> 2htdp/image docs.  So for example, the section you referred me to has this
>> example:
>>    (let* ([s (rectangle 20 20 "outline" "black")]
>>           [r (beside s s s s s s)])
>>        (above r r r r r r))
>> which when run in DrRacket produces a grid, but in the docs crops the right
>> and bottom lines.  That makes the discussion about cropping very confusing.
>>   Also: it seems you cannot in general have Scribble examples that involve
>> outlined shapes such that they look like they really appear in DrRacket.
> I see the attached in the docs. Do you see differently?
> ____________________
>    Racket Users list:
>    http://lists.racket-lang.org/users

Posted on the users mailing list.