Etoys: Morphic-kfr.59.mcz

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

Etoys: Morphic-kfr.59.mcz

commits-2
Karl Ramberg uploaded a new version of Morphic to project Etoys:
http://source.squeak.org/etoys/Morphic-kfr.59.mcz

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

Name: Morphic-kfr.59
Author: kfr
Time: 21 May 2011, 11:13:36 pm
UUID: 27a02fce-bc51-2d4c-a39a-2cb1c7a2f968
Ancestors: Morphic-kfr.58

The Ruler Object stops measuring when you rotate it
Kind of fixed

=============== Diff against Morphic-kfr.57 ===============

Item was changed:
  ----- Method: RulerMorph>>drawOn: (in category 'drawing') -----
+ drawOn: aCanvas
+ | s aMorph |
- drawOn: aCanvas
-
- | s |
  super drawOn: aCanvas.
+ self isFlexed
+ ifTrue: [aMorph := self owner]
+ ifFalse: [aMorph := self].
+ s := aMorph width printString , 'x' , aMorph height printString.
+ aCanvas
+ drawString: s
+ in: (bounds insetBy: borderWidth + 5)
+ font: nil
+ color: Color red!
- s _ self width printString, 'x', self height printString.
- aCanvas drawString: s in: (bounds insetBy: borderWidth + 5) font: nil color: Color red.
- !

_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev
Reply | Threaded
Open this post in threaded view
|

Re: Etoys: Morphic-kfr.59.mcz

Steve Thomas
Fix has bug where it measure values change on rotate. So if I have a ruler 200x100, then turn 45, its measure changes to 215, 215 even though the rectangle is the same size.

The previous version would not change its measures when rotated. The problem was that when you change size on a rotated ruler, you are really changing scale.  And it seems the "measurements" stop when scale != 1 (I changed back to 1 and set heading to 0 and change size worked fine, ie: measured correctly.

Stephen

On Sat, May 21, 2011 at 5:14 PM, <[hidden email]> wrote:
Karl Ramberg uploaded a new version of Morphic to project Etoys:
http://source.squeak.org/etoys/Morphic-kfr.59.mcz

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

Name: Morphic-kfr.59
Author: kfr
Time: 21 May 2011, 11:13:36 pm
UUID: 27a02fce-bc51-2d4c-a39a-2cb1c7a2f968
Ancestors: Morphic-kfr.58

The Ruler Object stops measuring when you rotate it
Kind of fixed

=============== Diff against Morphic-kfr.57 ===============

Item was changed:
 ----- Method: RulerMorph>>drawOn: (in category 'drawing') -----
+ drawOn: aCanvas
+       | s aMorph |
- drawOn: aCanvas
-
-       | s |
       super drawOn: aCanvas.
+       self isFlexed
+               ifTrue: [aMorph := self owner]
+               ifFalse: [aMorph := self].
+       s := aMorph width printString , 'x' , aMorph height printString.
+       aCanvas
+               drawString: s
+               in: (bounds insetBy: borderWidth + 5)
+               font: nil
+               color: Color red!
-       s _ self width printString, 'x', self height printString.
-       aCanvas drawString: s in: (bounds insetBy: borderWidth + 5) font: nil color: Color red.
- !

_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev


_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev