Skip to content

Commit

Permalink
resizing a window will re-center window if window should be centered
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jan 29, 2024
1 parent cf97098 commit fa39043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Spec2-Adapters-Morphic/SpMorphicWindowAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ SpMorphicWindowAdapter >> rebuildWithSpecLayout: aSpec [
{ #category : 'widget API' }
SpMorphicWindowAdapter >> resize: aPoint [

widget extent: aPoint
widget extent: aPoint.
self presenter isCentered
ifTrue: [ self centered ]
]

{ #category : 'factory' }
Expand Down

0 comments on commit fa39043

Please sign in to comment.