[Pharo-dev] doLayoutIn: killing the image
stephane.ducasse at inria.fr
Thu Aug 15 04:45:02 EDT 2013
probably that show: invokes somehow doLayoutIn:
On Aug 15, 2013, at 10:23 AM, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:
> In this method I just added Transcript show: '.'.
> and tried to open a transcript and it freezes the image systematically :(
> Any ideas why?
> doLayoutIn: layoutBounds
> "Compute a new layout based on the given layout bounds."
> "Note: Testing for #bounds or #layoutBounds would be sufficient to
> figure out if we need an invalidation afterwards but #outerBounds
> is what we need for all leaf nodes so we use that."
> | layout box priorBounds |
> priorBounds := self outerBounds.
> submorphs isEmpty ifTrue: [^fullBounds := priorBounds].
> "Send #ownerChanged to our children"
> submorphs do: [:m | m ownerChanged].
> layout := self layoutPolicy.
> layout ifNotNil: [layout layout: self in: layoutBounds].
> self adjustLayoutBounds.
> fullBounds := self privateFullBounds.
> box := self outerBounds.
> box = priorBounds
> ifFalse: [self invalidRect: (priorBounds quickMerge: box)]
More information about the Pharo-dev