Skip to content

Commit

Permalink
fixed BlInfiniteElement>>minHeight maxHeight:
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Jan 13, 2024
1 parent 702d203 commit d12f9c1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Bloc-Infinite/BlInfiniteElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,7 @@ BlInfiniteElement >> maxFlingVelocity [
BlInfiniteElement >> maxHeight: aNumber [

"set maxHeight in constraints"
self constraintsDo: [ :c | c maxHeight: aNumber ].
" arm a height update after next layout to allow scrollToIndex: to work as expected in a comboBox as an example"
self whenLayoutedDoOnce: [ self height: self measuredHeight ]
self constraintsDo: [ :c | c maxHeight: aNumber ]
]

{ #category : #'accessing - properties' }
Expand All @@ -1042,9 +1040,7 @@ BlInfiniteElement >> minFlingVelocity [
BlInfiniteElement >> minHeight: aNumber [

"set maxHeight in constraints"
self constraintsDo: [ :c | c minHeight: aNumber ].
" arm a height update after next layout to allow scrollToIndex: to work as expected in a comboBox as an example"
self whenLayoutedDoOnce: [ self height: self measuredHeight ]
self constraintsDo: [ :c | c minHeight: aNumber ]
]

{ #category : #notifying }
Expand Down

0 comments on commit d12f9c1

Please sign in to comment.