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

commits at source.squeak.org commits at source.squeak.org
Wed Jan 19 20:35:27 UTC 2022


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

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

Name: Morphic-mt.1851
Author: mt
Time: 19 January 2022, 9:35:21.522754 pm
UUID: 8baca7c1-ef50-1d4b-937d-739606c9d7db
Ancestors: Morphic-mt.1850

Fixes another awkward regression. There seems to be a layout issue regarding text morphs and line wrapping. It must not be smaller than 9 pixels ... I will look at a better fix later.

Thanks to Christoph (ct) for finding this!

=============== Diff against Morphic-mt.1850 ===============

Item was changed:
  ----- Method: TextMorph>>minWidth (in category 'layout') -----
  minWidth
  
  	| result |
+ 	textStyle ifNil: [^ (TextStyle defaultFont widthOf: $x) * 2].
- 	textStyle ifNil: [^ (TextStyle defaultFont widthOf: $x)].
  
+ 	result := (textStyle defaultFont widthOf: $x) * 2 + (self borderWidth*2).
- 	result := (textStyle defaultFont widthOf: $x) + (self borderWidth*2).
  	margins ifNil: [^ result].
  	
  	^ margins isRectangle
  		ifTrue: [result + margins left + margins right]
  		ifFalse: [margins isPoint
  			ifTrue: [result + margins x + margins x]
  			ifFalse: [result + (2*margins)]]!



More information about the Squeak-dev mailing list