@legendapp/list 2.0.0-next.21 → 2.0.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -8
- package/index.mjs +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -850,14 +850,14 @@ function calculateOffsetForIndex(ctx, state, index) {
|
|
|
850
850
|
let position = 0;
|
|
851
851
|
if (index !== void 0) {
|
|
852
852
|
position = (state == null ? void 0 : state.positions.get(getId(state, index))) || 0;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
853
|
+
const paddingTop = peek$(ctx, "stylePaddingTop");
|
|
854
|
+
if (paddingTop) {
|
|
855
|
+
position += paddingTop;
|
|
856
|
+
}
|
|
857
|
+
const headerSize = peek$(ctx, "headerSize");
|
|
858
|
+
if (headerSize) {
|
|
859
|
+
position += headerSize;
|
|
860
|
+
}
|
|
861
861
|
}
|
|
862
862
|
return position;
|
|
863
863
|
}
|
package/index.mjs
CHANGED
|
@@ -829,14 +829,14 @@ function calculateOffsetForIndex(ctx, state, index) {
|
|
|
829
829
|
let position = 0;
|
|
830
830
|
if (index !== void 0) {
|
|
831
831
|
position = (state == null ? void 0 : state.positions.get(getId(state, index))) || 0;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
832
|
+
const paddingTop = peek$(ctx, "stylePaddingTop");
|
|
833
|
+
if (paddingTop) {
|
|
834
|
+
position += paddingTop;
|
|
835
|
+
}
|
|
836
|
+
const headerSize = peek$(ctx, "headerSize");
|
|
837
|
+
if (headerSize) {
|
|
838
|
+
position += headerSize;
|
|
839
|
+
}
|
|
840
840
|
}
|
|
841
841
|
return position;
|
|
842
842
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.22",
|
|
4
4
|
"description": "Legend List is a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|