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

commits at source.squeak.org commits at source.squeak.org
Mon Aug 15 10:50:52 UTC 2022

Marcel Taeumel uploaded a new version of Morphic to project The Trunk:

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

Name: Morphic-mt.2025
Author: mt
Time: 15 August 2022, 12:50:46.840306 pm
UUID: a5e3954c-4e93-fd41-b800-7a3f105682ea
Ancestors: Morphic-mt.2024

Minor tweak of previous commit to ensure visibility of empty text morphs.

=============== Diff against Morphic-mt.2024 ===============

Item was changed:
  ----- Method: TextMorph>>createParagraph (in category 'private') -----
  	self setProperty: #CreatingParagraph toValue: true.
  		self setDefaultContentsIfNil.
  		"...Code here to recreate the paragraph..."
  		paragraph := (self paragraphClass new textOwner: self owner).
  		paragraph wantsColumnBreaks: successor notNil.
  			compose: text
  			style: textStyle
  			from: self startingIndex
  			in: self container.
  		wrapFlag ifFalse:
  			["Was given huge container at first... now adjust"
+ 			paragraph adjustRightXDownTo: paragraph caretWidth].
- 			paragraph adjustRightX].
  		paragraph focused: (self currentHand keyboardFocus == self).
  			caretColor: self caretColor;
  			selectionColor: self selectionColor;
  			unfocusedSelectionColor: self unfocusedSelectionColor.
  		self fit.
  	] ensure: [self removeProperty: #CreatingParagraph].
  	^ paragraph!

More information about the Squeak-dev mailing list