Skip to content

Commit

Permalink
missing change in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dionisiydk committed Jun 28, 2020
1 parent f459b8e commit 1c2fdee
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/Morphic-Widgets-PolyTabs/TabGroupMorph.class.st
Expand Up @@ -332,12 +332,14 @@ TabGroupMorph >> tabSelectorMorph: anObject [
]

{ #category : #updating }
TabGroupMorph >> update: aSymbol [
TabGroupMorph >> update: aSymbol with: anObject [
"Handle tab changes."

super update: aSymbol.
aSymbol == #selectedIndex
ifTrue: [self updatePageIndex: self selectedPageIndex]
super update: aSymbol with: anObject.
aSymbol == #selectedIndex ifTrue: [
anObject = 0 "nothing was selected before"
ifTrue: [ self updatePageIndex: self selectedPageIndex ]
ifFalse: [ self updatePageIndex: self selectedPageIndex oldIndex: anObject ]]
]

{ #category : #page }
Expand All @@ -349,3 +351,8 @@ TabGroupMorph >> updatePageIndex: index [
self pageMorph ifNotNil: [:pm | pm layoutChanged].
self adoptPaneColor: self paneColor
]

{ #category : #page }
TabGroupMorph >> updatePageIndex: index oldIndex: oldSelectedIndex [
self updatePageIndex: index
]

0 comments on commit 1c2fdee

Please sign in to comment.