[squeak-dev] The Trunk: Morphic-ml.196.mcz

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

[squeak-dev] The Trunk: Morphic-ml.196.mcz

commits-2
Andreas Raab uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ml.196.mcz

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

Name: Morphic-ml.196
Author: ml
Time: 2 October 2009, 6:14:51 am
UUID: 702387f4-17e2-4cf2-a319-26761312c653
Ancestors: Morphic-ar.195

Using minWidth and minHeight instead of minExtent to determine the bounds within a ProportionalSplitterMorph can be dragged.

This gives more predictable and expected results than previously. It also results in better behaviour when the system window gets resized to a smaller size.

=============== Diff against Morphic-ar.195 ===============

Item was added:
+ MorphicModel subclass: #MorphicModel3
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Morphic-Models'!

Item was changed:
  ----- Method: ProportionalSplitterMorph>>minimumWidthOf: (in category 'as yet unclassified') -----
  minimumWidthOf: aCollection
  "Answer the minimum width needed to display any of the morphs in aCollection."
 
  ^ aCollection inject: 0 into: [ :width :morph |
+ (morph minWidth + self width) max: width]!
- morph minExtent x max: width]!

Item was changed:
  ----- Method: ProportionalSplitterMorph>>minimumHeightOf: (in category 'as yet unclassified') -----
  minimumHeightOf: aCollection
  "Answer the minimum height needed to display any of the morphs in aCollection."
 
  ^ aCollection inject: 0 into: [ :height :morph |
+ (morph minHeight + self height) max: height]!
- morph minExtent y max: height]!