[squeak-dev] BUG: UpdatingStringMorph broken in 5.3 (take 2)

St├ęphane Rollandin lecteur at zogotounga.net
Sun Jan 5 17:05:55 UTC 2020


Hello,

As I already indicated one week ago, UpdatingStringMorph is currently 
broken in trunk.

If you do

   (UpdatingStringMorph on: Time selector: #now) openInWorld.

you will see that the display is not consistently updated as it should 
via the #step method.


This can be fixed by adding a #changed in StringMorph>>#contents: as follow:


StringMorph>>#contents: newContents

	newContents isText
		ifTrue: [^ self initializeFromText: newContents].

	contents = newContents
		ifTrue: [^ self "no substantive change"].

	contents := newContents.
	
	self fitContents; changed


Now maybe the #changed should be added to #fitContents itself.

Stef


More information about the Squeak-dev mailing list