react-native-resource-calendar 1.1.8 → 1.1.10
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/README.md +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1366,7 +1366,8 @@ var CalendarInner = (props) => {
|
|
|
1366
1366
|
eventStyleOverrides,
|
|
1367
1367
|
overLappingLayoutMode = "stacked",
|
|
1368
1368
|
mode = "day",
|
|
1369
|
-
activeResourceId
|
|
1369
|
+
activeResourceId,
|
|
1370
|
+
scrollsToTop = true
|
|
1370
1371
|
} = props;
|
|
1371
1372
|
const numberOfColumns = mode === "day" ? numberOfColumnsProp : mode === "week" ? 7 : 3;
|
|
1372
1373
|
const isMultiDay = mode !== "day";
|
|
@@ -1857,7 +1858,7 @@ var CalendarInner = (props) => {
|
|
|
1857
1858
|
top: 0,
|
|
1858
1859
|
left: TIME_LABEL_WIDTH,
|
|
1859
1860
|
paddingLeft: TIME_LABEL_WIDTH,
|
|
1860
|
-
width: width - TIME_LABEL_WIDTH,
|
|
1861
|
+
width: (layout?.width ?? width) - TIME_LABEL_WIDTH,
|
|
1861
1862
|
height: "100%",
|
|
1862
1863
|
backgroundColor: "rgba(0, 0, 0, 0.1)",
|
|
1863
1864
|
zIndex: 1
|
|
@@ -1869,6 +1870,7 @@ var CalendarInner = (props) => {
|
|
|
1869
1870
|
onScroll: verticalScrollHandler,
|
|
1870
1871
|
ref: verticalScrollViewRef,
|
|
1871
1872
|
scrollEventThrottle: 16,
|
|
1873
|
+
scrollsToTop,
|
|
1872
1874
|
snapToInterval: hourHeight,
|
|
1873
1875
|
decelerationRate: "fast",
|
|
1874
1876
|
snapToAlignment: "start",
|