[racket-dev] while resizing drawing into a canvas is off

From: Marijn (hkBst at gentoo.org)
Date: Tue Oct 18 10:32:54 EDT 2011

Dear list,

the attached program draws a grid in a canvas and paints a few of the
cells so created. When resizing the window, the grid is also dynamically
resized together with the coloring of a few painted cells. Everything
seems to work fine, except that while the window is being changed in
size the drawing is off and the colored cells do not properly correspond
to the drawn grid. You can see this especially well if you hold down the
mouse button after resizing. When releasing it the grid lines will
change position to match up once more with the colorings.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: draw-grid.rkt
URL: <http://lists.racket-lang.org/dev/archive/attachments/20111018/b8dc222f/attachment.ksh>
-------------- 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/20111018/b8dc222f/attachment.sig>

Posted on the dev mailing list.