[squeak-dev] The Inbox: EToys-kfr.414.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Oct 31 19:59:05 UTC 2020
A new version of EToys was added to project The Inbox:
http://source.squeak.org/inbox/EToys-kfr.414.mcz
==================== Summary ====================
Name: EToys-kfr.414
Author: kfr
Time: 31 October 2020, 8:58:48.943742 pm
UUID: 5e186cb9-67d7-124d-901e-ae50d4bacbe8
Ancestors: EToys-eem.413
self world returns nil when the morph is not visible/ opened yet
=============== Diff against EToys-eem.413 ===============
Item was changed:
----- Method: CategoryViewer>>assureCategoryFullyVisible (in category '*Etoys-Squeakland-categories') -----
assureCategoryFullyVisible
"Keep deleting categoryviewers other than the receiver until the receiver is fully visible."
| ready toDelete |
ready := false.
+ [(self bounds bottom > Project current world bottom) and: [ready not]] whileTrue: [
- [(self bounds bottom > self world bottom) and: [ready not]] whileTrue: [
owner submorphs size > 2
ifTrue: [
toDelete := owner submorphs allButFirst reversed
detect: [:cv | cv ~~ self]
ifNone: [^ self].
toDelete delete.
self world doOneCycleNow]
ifFalse: [
ready := true]].!
More information about the Squeak-dev
mailing list
|