Skip to content

Commit

Permalink
+ ToMultiSelectListNodeSkin
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Dec 17, 2024
1 parent cd4b651 commit cd6f791
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Toplo-Widget-Select/ToMultiSelectListNode.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ Class {
}

{ #category : #skin }
ToMultiSelectListNode >> installRawStyle [
ToMultiSelectListNode >> newRawSkin [

super installRawStyle.
self holder selectElement withGroups ifTrue: [
self holder isGroup
ifTrue: [
self padding:
((self padding withTop: self padding top + 6) withBottom:
self padding bottom + 3) ]
ifFalse: [
self padding: (self padding withLeft: self padding left + 6) ] ]
^ ToMultiSelectListNodeSkin new
]
18 changes: 18 additions & 0 deletions src/Toplo-Widget-Select/ToMultiSelectListNodeSkin.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Class {
#name : #ToMultiSelectListNodeSkin,
#superclass : #ToListNodeSkin,
#category : #'Toplo-Widget-Select-List'
}

{ #category : #'event handling' }
ToMultiSelectListNodeSkin >> installSkinEvent: anEvent [

super installSkinEvent: anEvent.
anEvent elementDo: [ :e |
e holder selectElement withGroups ifTrue: [
e holder isGroup
ifTrue: [
e padding: ((e padding withTop: e padding top + 6) withBottom:
e padding bottom + 3) ]
ifFalse: [ e padding: (e padding withLeft: e padding left + 6) ] ] ]
]

0 comments on commit cd6f791

Please sign in to comment.