Skip to content

Commit c582553

Browse files
committed
default decorationInsets should be empty instead of nil (to avoid checking nils)
1 parent 88ced20 commit c582553

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Bloc-Infinite/BlInfiniteLayoutConstraints.class.st

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Class {
1212

1313
{ #category : #accessing }
1414
BlInfiniteLayoutConstraints >> decorationInsets [
15+
1516
^ decorationInsets
1617
]
1718

@@ -64,11 +65,13 @@ BlInfiniteLayoutConstraints >> holder: anElementHolder [
6465
holder := anElementHolder
6566
]
6667

67-
{ #category : #'initialize-release' }
68+
{ #category : #initialization }
6869
BlInfiniteLayoutConstraints >> initialize [
70+
6971
super initialize.
70-
72+
7173
holder := self defaultHolder.
74+
decorationInsets := BlInsets empty.
7275
insertsDirty := true.
7376
pendingInvalidate := false
7477
]

0 commit comments

Comments
 (0)