[squeak-dev] The Trunk: Morphic-mt.1195.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jul 21 09:21:08 UTC 2016


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1195.mcz

==================== Summary ====================

Name: Morphic-mt.1195
Author: mt
Time: 21 July 2016, 11:20:30.280126 am
UUID: c6b318c6-305b-d048-883b-11ced4969c1f
Ancestors: Morphic-mt.1194

Fixes a small UI glitch where the help text was not removed if the contents of a pluggable text morph were changed programmatically.

=============== Diff against Morphic-mt.1194 ===============

Item was changed:
  ----- Method: PluggableTextMorph>>setText: (in category 'model access') -----
  setText: aText
  	textMorph
  		ifNil: [textMorph := self textMorphClass new
  					contents: aText
  					wrappedTo: self innerBounds width.
  				textMorph
  					margins: (3 at 0 corner: 0 at 0);
  					setEditView: self;
  					autoFit: true;
  					setProperty: #indicateKeyboardFocus toValue: #never.
  				scroller addMorph: textMorph.
  				"Reset minExtent because only now we can anser #isAutoFit correctly."
  				self minimumExtent: 0 at 0; updateMinimumExtent]
  		ifNotNil: [textMorph newContents: aText].
  	self hasUnacceptedEdits: false.
+ 	self setScrollDeltas.
+ 	
+ 	self changed. "Redraw the whole area. For example, it might not be necssary to draw the help text anymore."!
- 	self setScrollDeltas.!



More information about the Squeak-dev mailing list