The Trunk: ToolBuilder-MVC-nice.48.mcz

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

The Trunk: ToolBuilder-MVC-nice.48.mcz

commits-2
Nicolas Cellier uploaded a new version of ToolBuilder-MVC to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-MVC-nice.48.mcz

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

Name: ToolBuilder-MVC-nice.48
Author: nice
Time: 10 June 2017, 5:58:54.129159 pm
UUID: d09d8863-3842-4636-9d43-55e1271ff71e
Ancestors: ToolBuilder-MVC-mt.47

Massively replace ifNotNilDo: by ifNotNil:
We don't need two different selectors to do a single thing.

=============== Diff against ToolBuilder-MVC-mt.47 ===============

Item was changed:
  ----- Method: MVCToolBuilder>>positionSubviewsWithin: (in category 'private') -----
  positionSubviewsWithin: widget
  "Translate subviews to position the viewport of each subView relative to
  the widget window origin. If subviews are repositioned, as in a row of button
  views arranged within a view, then the transformations will later be rescaled
  to fit the subviews within the widget window."
 
+ widget subViews ifNotNil: [:subViews |
- widget subViews ifNotNilDo: [:subViews |
  subViews isEmpty ifFalse: [ | translation |
  translation := widget window origin - subViews first window origin.
  subViews do: [:v |
  v setTransformation: (v transformation translateBy: translation)]]].
  !