Skip to content

Commit 31bc0d6

Browse files
committed
Fix issue with simple style scrollables
1 parent d70524a commit 31bc0d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ export default function useSplitContentContainerStyles(
3838
);
3939

4040
const leftBorderWidth =
41-
flattenedStyle.borderLeftWidth ?? flattenedStyle.borderWidth ?? 0;
41+
flattenedStyle?.borderLeftWidth ?? flattenedStyle?.borderWidth ?? 0;
4242
const rightBorderWidth =
43-
flattenedStyle.borderRightWidth ?? flattenedStyle.borderWidth ?? 0;
43+
flattenedStyle?.borderRightWidth ?? flattenedStyle?.borderWidth ?? 0;
4444
const topBorderWidth =
45-
flattenedStyle.borderTopWidth ?? flattenedStyle.borderWidth ?? 0;
45+
flattenedStyle?.borderTopWidth ?? flattenedStyle?.borderWidth ?? 0;
4646
const bottomBorderWidth =
47-
flattenedStyle.borderBottomWidth ?? flattenedStyle.borderWidth ?? 0;
47+
flattenedStyle?.borderBottomWidth ?? flattenedStyle?.borderWidth ?? 0;
4848

4949
// contentContainerStyle should always at least fill the parent to ensure sizing changes reflects properly on component and children.
5050
// The measured sizes include borders, so we need to subtract those before applying

0 commit comments

Comments
 (0)