Skip to content

Commit

Permalink
ToSkinStateQueue>>enablementChangedIn:
Browse files Browse the repository at this point in the history
queue states should not be applied if not in space
  • Loading branch information
plantec committed Dec 16, 2024
1 parent e53b780 commit 66a46d8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
24 changes: 24 additions & 0 deletions src/Toplo-Widget-List/TToItemListHolder.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,30 @@ TToItemListHolder >> isItemContainer [
^ true
]

{ #category : #'t - item list holder - accessing' }
TToItemListHolder >> isNodeAutoDistribution [

^ self itemList isNodeAutoDistribution
]

{ #category : #'t - item list holder - accessing' }
TToItemListHolder >> isNodeScrolling [

^ self itemList isNodeScrolling
]

{ #category : #'t - item list holder - accessing' }
TToItemListHolder >> isNodeWrapping [

^ self itemList isNodeWrapping
]

{ #category : #'t - item list holder - accessing' }
TToItemListHolder >> isUniformNodeWidth [

^ self itemList isUniformNodeWidth
]

{ #category : #'t - item list holder - accessing' }
TToItemListHolder >> itemList [

Expand Down
5 changes: 3 additions & 2 deletions src/Toplo/ToSkinStateQueue.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ ToSkinStateQueue >> applyOn: anElement [

{ #category : #adding }
ToSkinStateQueue >> enablementChangedIn: anElement [

" Do not force state application if the element is not in a space.
It can also be the case when a layout is computed for an infinite "
installStateApplied ifFalse: [ ^ anElement requestNewSkin ].

(anElement isAttachedToSceneGraph not or: [ installStateApplied not ])
ifTrue: [ ^ anElement requestNewSkin ].
nextStates reset.
self enqueueEnablementStateForElement: anElement.
self applyEnqueuedStatesIn: anElement
Expand Down

0 comments on commit 66a46d8

Please sign in to comment.