<div dir="ltr">I've been working on a program that uses "init-auto-scrollbars" and I noticed that when the window is resized it actually changes the size of the virtual canvas along with the literal canvas instead of just resizing the scrollbar and changing the size of the literal canvas.<div><br></div><div>Here's an example that shows this:</div><div><br></div><div><b><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">(require racket/gui)</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">(define frame (new frame%</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">                  [label "Example"]</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">                  [width 300]</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">                  [height 300]))</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">(define canv (new canvas% [parent frame]</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">    [style '(vscroll hscroll)]</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">            [paint-callback</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">             (lambda (canvas dc)</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">(send dc draw-ellipse 0 0 500 500))]))</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">(send frame show #t)</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">(send canv init-auto-scrollbars 500 500 0.0 0.0)</span></b><br></div><div><b><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br></span></b></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">Resize the window, making it large enough to show the entire ellipse; notice how the scrollbar's relative size doesn't change, and there is blank space at the bottom.</span><b><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br></span></b></div><div><font color="#262626" face="arial, sans-serif"><span style="line-height:16px">Is this by design or some kind of bug?</span></font></div></div>