Morph method layoutChanged
Last updated at 10:56 pm UTC on 3 November 2020
When a layout has been changed the fullBounds are set to nil. This indicates that the layout needs to be recomputed and is done in the next cycle when layouts are calculated.
| layout |
fullBounds ifNil:[^self]. "layout will be recomputed so don't bother"
fullBounds := nil.
layout := self layoutPolicy.
layout ifNotNil:[layout flushLayoutCache].
owner ifNotNil: [owner layoutChanged].
"note: does not send #ownerChanged here - we'll do this when computing the new layout"
More see Layout