Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
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.

layoutChanged
	| 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