The Trunk: Morphic-mt.882.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.882.mcz

commits-2
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@0] ifFalse:[scrollBar minExtent])]
+ ifFalse: [super minScrollbarExtent]!