Skip to content

Commit

Permalink
Fix a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed May 10, 2024
1 parent 1552ba1 commit 7b9f22e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Bloc/BlLayoutErrorHandler.class.st
Expand Up @@ -11,18 +11,16 @@ BlLayoutErrorHandler >> matches: aFramePhase [

{ #category : #'error handling' }
BlLayoutErrorHandler >> processError: aBlHandledError [

NonInteractiveTranscript stderr
show: aBlHandledError;
cr.
self flag: 'crappy'.
"Temporary reset the layout of the parent if it's an infinite element.
Should be replaced with a more generic solution."
aBlHandledError element
withAllParentsDo: [ :aParentElement |
"(aParentElement isKindOf: #BlInfiniteElement asClass)
ifTrue: [ aParentElement state beStepStart ]."
(aParentElement isKindOf: BlInfiniteElement)
ifTrue: [ aParentElement state beStepStart ] ].
aBlHandledError element withAllParentsDo: [ :aParentElement |
(aParentElement class name equals: #BlInfiniteElement)
ifTrue: [ aParentElement state beStepStart ] ].

aBlHandledError debug
]

0 comments on commit 7b9f22e

Please sign in to comment.