[Pkg] The Trunk: Morphic-mt.882.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 16 07:00:45 UTC 2015


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

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

Name: Morphic-mt.882
Author: mt
Time: 16 April 2015, 9:00:00.531 am
UUID: 06523207-00f1-4f4c-8790-edec426ffbda
Ancestors: Morphic-mt.881

Optimized minimal extent for scrollable/pluggable text fields if they wrap their contents anyway.

=============== Diff against Morphic-mt.881 ===============

Item was added:
+ ----- Method: PluggableTextMorph>>minScrollbarExtent (in category 'geometry') -----
+ minScrollbarExtent
+ 	"We never have a horizontal scroll bar if we wrap text."
+ 	
+ 	^ (textMorph notNil and: [textMorph isAutoFit])
+ 		ifTrue: [((self valueOfProperty: #noVScrollBarPlease ifAbsent: [false]) 
+ 				ifTrue:[0 at 0] ifFalse:[scrollBar minExtent])]
+ 		ifFalse: [super minScrollbarExtent]!



More information about the Packages mailing list