[racket-dev] okay to call init-auto-scrollbars multiple times on a canvas%?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jan 15 08:48:38 EST 2014

Yes, it's ok to call that method multiple times.

At Tue, 14 Jan 2014 10:44:39 -0800, John Clements wrote:
> I’m implementing (not-horribly-clunky) zooming for sound waves in rsound, and 
> I like the auto-scrollbars mechanism.  One question is what should happen when 
> the user zooms in. I’d like to change the virtual-size.  The obvious solution 
> is to call “init-auto-scrollbars” again. This seems to work, but the name 
> “init-auto-scrollbars” gives me pause. Is it okay to call init-auto-scrollbars 
> again on a canvas?
> If so, I’ll add a note to the docs.
> Many thanks!
> John
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev

Posted on the dev mailing list.