[squeak-dev] SketchEditor drawing area not resizing with window resize

Jecel Assumpcao Jr. jecel at merlintec.com
Tue Feb 19 17:20:35 UTC 2019

Stephen A Smith wrote on: Sun, 17 Feb 2019 19:42:43 -0600 (CST)
> Tried to submit this as a bug using Mantis but was unable to figure out how
> to log in there? Do we need to register somewhere to submit bugs?

I am not sure how active Mantis is. For now, sending it here is probably
a good idea.

> Trying to draw a line across a sketch, but I need my sketch to be wider than
> the default width that the initial drawing area opens up at. I resize the
> SketchEditor window using the halos, to the width I want, then try to draw a
> horizontal line from left to right. The line stops drawing at what appears
> to be the border of the original drawing area's right edge. I can't draw any
> kind of shape past that point.

My guess is that the morph gets resized but the associated bitmap
remains the same.

> Anyone else having this issue? My desktop is 1920x1080. I'm using Squeak 5.2
> build 18229 64bit Windows 10.

On Saturday this bit me as I tried to draw stuff during a Skype meeting.
I was using Squeak 4.2 All-in-one on a Mac.

The solution would be to create a new, larger bitmap to match the new
morph size and then copy the image from the old bitmap (you don't want
the current drawing to vanish). If the morph becomes smaller than the
bitmap, I would leave it alone so that the now unseen parts will
reappear if the morph is grown again. In that case it might be
interesting to truncate the bitmap to the current morph size when the
"keep" button is pressed.

-- Jecel

More information about the Squeak-dev mailing list