[FIX] TextMorph Re: [ANN] Fixes/enhancements are now being
reviewed for inclusion into the base image
Ross Boylan
RossBoylan at stanfordalumni.org
Mon Sep 3 06:10:39 UTC 2001
Here's Jesse Welton's change set to fix some problems with TextMorph losing
focus. I nominated this awhile ago, but didn't include the change set. It
fixes a really annoying problem that results in characters going in
backwards because of a loss of focus.
Note the changes precede the latest changes to TextMorph from SqC, so it's
possible they are no longer necessary (or don't work).
'From Squeak3.1alpha [latest update: #''Squeak3.1alpha'' of 1 May 2001
update 3960] on 19 May 2001 at 8:00:13 am'!
"Change Set: TinyTextMorphFix-JW
Date: 19 May 2001
Author: Jesse Welton
Fixes TextMorph to retain the current selection and other editor
information when its extent is changed. This should prevent the selection
from being reset by merely typing into TextMorphs in dynamic layouts."!
!TextMorph methodsFor: 'geometry' stamp: 'JW 5/19/2001 07:54'!
extent: aPoint
| priorEditor |
priorEditor := editor.
self releaseParagraph. "invalidate the paragraph cache"
super extent: (aPoint truncated max: 9@(textStyle lineGrid+2)).
priorEditor
ifNil: [self fit]
ifNotNil: [self installEditorToReplace: priorEditor].! !
More information about the Squeak-dev
mailing list
|