[Pkg] The Trunk: Morphic-spd.507.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jun 21 21:51:41 UTC 2011
Chris Muller uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-spd.507.mcz
==================== Summary ====================
Name: Morphic-spd.507
Author: spd
Time: 4 January 2011, 5:54:07.209 pm
UUID: c5d862d6-b70d-4ef2-b9e5-8018b9949701
Ancestors: Morphic-cmm.506
Added comments for TextMorph's #autoFit: and #wrapFlag:, which I find horrendously confusing. They are
probably badly named, but at minimum deserve better comments.
=============== Diff against Morphic-cmm.506 ===============
Item was changed:
----- Method: TextMorph>>autoFit: (in category 'accessing') -----
autoFit: trueOrFalse
+ "Whether I automatically adjust my size to fit text as it changes"
+
self isAutoFit = trueOrFalse ifTrue: [^ self].
+ self autoFitOnOff.!
- self autoFitOnOff!
Item was changed:
----- Method: TextMorph>>wrapFlag: (in category 'accessing') -----
wrapFlag: aBoolean
+ "Whether contained text will adjust its bounds as I change shape:
+ | wrapFlag | TextMorph grows | TextMorph shrinks |
+ | true | wrapped lines fill new space | long lines wrap to fit |
+ | false | wrapped lines stay same | long lines are cut off |"
- "Change whether contents are wrapped to the container."
aBoolean == wrapFlag ifTrue: [^ self].
wrapFlag := aBoolean.
self composeToBounds!
More information about the Packages
mailing list