Re: [racket-users] Re: Problem with `copy` method of image-snip%

2019-07-21 Thread Robby Findler
Maybe because get-extent in the super class vaches some information and that cache doesn't get maintained if you override the method. Robby On Sun, Jul 21, 2019 at 12:09 PM Alex Harsanyi wrote: > > I am not entirely sure why (because I already spent more than 15 minutes > on this :-) ), but

[racket-users] Re: Problem with `copy` method of image-snip%

2019-07-21 Thread Alex Harsanyi
I am not entirely sure why (because I already spent more than 15 minutes on this :-) ), but the problem is with the `get-extent` method: just remove it, and let `image-snip%` handle the method. The `copy` method is not used in this case. Also, in your `on-char` and `on-event` methods, you

[racket-users] Re: Problem with `copy` method of image-snip%

2019-07-16 Thread Kshitij Sachan
Update: I've narrowed down the problem to the `copy` method of the snip. When I delete the copy method, I can see the snip perfectly, but it can't be resized (because no copy method implemented). I removed the GL component, so now I'm only attempting to extend the image-snip% class to resize