Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pharo-spec/Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Jul 8, 2019
2 parents ea5b653 + 73dc7c1 commit 7633c2d
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 7633c2d

Please sign in to comment.