Skip to content

Commit

Permalink
change BlSpaceFrameLayoutPhase order in initializePhases
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Nov 1, 2023
1 parent 3d560b0 commit 9c0b490
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/Bloc/BlLayoutFitContentResizer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ BlLayoutFitContentResizer >> requestedWidthIn: anElement [
| w |
anElement hasChildren ifFalse: [ ^ anElement width ].
w := 0.
anElement childrenDo: [ :child | (child constraints horizontal resizer isMatchParent)
ifTrue: [ w := w + child measuredWidth ]
ifFalse: [w := w + child requestedWidth ]].
anElement childrenDo: [ :child |
w := child constraints horizontal resizer isMatchParent
ifTrue: [ w + child measuredWidth ]
ifFalse: [ w + child requestedWidth ] ].
^ w
]
2 changes: 1 addition & 1 deletion src/Bloc/BlSpaceFrame.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ BlSpaceFrame >> initializePhases [
BlSpaceFrameHostValidationPhase new.
BlSpaceFrameTaskPhase new. " animation as an example "
BlSpaceFrameEventPhase new. " generate BlMouse events from host mouse event as an example "
BlSpaceFrameLayoutPhase new. " layouting all elements that requested layout "
BlSpaceFrameDrawingValidationPhase new.
BlSpaceFrameLayoutPhase new. " layouting all elements that requested layout "
BlSpaceFrameDrawingPhase new " drawing invalidate elements "}
]

Expand Down

0 comments on commit 9c0b490

Please sign in to comment.