[etoys-dev] Etoys: MorphicExtras-kfr.67.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 21 17:19:20 EDT 2012

Karl Ramberg uploaded a new version of MorphicExtras to project Etoys:

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

Name: MorphicExtras-kfr.67
Author: kfr
Time: 21 March 2012, 10:18:43 pm
UUID: 2f7cd2e7-687e-3f46-8381-36bbc16440fd
Ancestors: MorphicExtras-kfr.66

Fixes a bug that made it difficult to decrease the maxValue of a vertical number line.

=============== Diff against MorphicExtras-kfr.66 ===============

Item was changed:
  ----- Method: VerticalNumberLineMorph>>maxValue: (in category 'accessing') -----
  maxValue: aNumber 
  	"Set the max value as indicated; this will typically result in a change in actual bounds of the receiver."
  	| newHeight |
+ 	newHeight := (aNumber - minValue * pixelsPerUnit) rounded + self allowance.
- 	newHeight := (aNumber - minValue * pixelsPerUnit) rounded + self allowance + (self legendsHeight / 2).
  	self bounds: (self bounds withTop: self bounds top - (newHeight - self height))!

More information about the etoys-dev mailing list