Skip to content

Commit

Permalink
Merge pull request #644 from pharo-spec/643-Use-the-direction-strateg…
Browse files Browse the repository at this point in the history
…y-instead-of-performs-in-paned-layout

643-Use-the-direction-strategy-instead-of-performs-in-paned-layout
  • Loading branch information
jecisc authored Jul 8, 2019
2 parents ed1e7be + e7575c6 commit 73dc7c1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Spec2-Adapters-Morphic/SpLayoutDirection.extension.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Extension { #name : #SpLayoutDirection }

{ #category : #'*Spec2-Adapters-Morphic' }
SpLayoutDirection >> newSplitter [
^ self subclassResponsibility
]

{ #category : #'*Spec2-Adapters-Morphic' }
SpLayoutDirection >> setRigidityOfNonExpendedMorph: aMorph [
self subclassResponsibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Extension { #name : #SpLayoutDirectionHorizontal }

{ #category : #'*Spec2-Adapters-Morphic' }
SpLayoutDirectionHorizontal >> newSplitter [
^ SpPanedResizerMorph newHorizontal
]

{ #category : #'*Spec2-Adapters-Morphic' }
SpLayoutDirectionHorizontal >> setRigidityOfNonExpendedMorph: aMorph [
aMorph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Extension { #name : #SpLayoutDirectionVertical }

{ #category : #'*Spec2-Adapters-Morphic' }
SpLayoutDirectionVertical >> newSplitter [
^ SpPanedResizerMorph newVertical
]

{ #category : #'*Spec2-Adapters-Morphic' }
SpLayoutDirectionVertical >> setRigidityOfNonExpendedMorph: aMorph [
aMorph
Expand Down
4 changes: 2 additions & 2 deletions src/Spec2-Adapters-Morphic/SpMorphicPanedAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ SpMorphicPanedAdapter >> addConstraits: constraints toChild: childMorph [

{ #category : #private }
SpMorphicPanedAdapter >> addSplitterIn: aPanel for: childMorph [

aPanel submorphs size = 1 ifFalse: [ ^ self ].
aPanel addMorphBack: (SpPanedResizerMorph perform: self selector)
aPanel addMorphBack: self direction newSplitter
]

{ #category : #private }
Expand Down

0 comments on commit 73dc7c1

Please sign in to comment.