u
This commit is contained in:
@@ -475,6 +475,7 @@ class FillSpace extends Component {
|
|||||||
onWheel,
|
onWheel,
|
||||||
virtualScrollbar = false,
|
virtualScrollbar = false,
|
||||||
racewayMarginBottom,
|
racewayMarginBottom,
|
||||||
|
racewayRight,
|
||||||
debug = false,
|
debug = false,
|
||||||
items,
|
items,
|
||||||
renderItem,
|
renderItem,
|
||||||
@@ -537,6 +538,7 @@ class FillSpace extends Component {
|
|||||||
total * unitHeight > viewportHeight;
|
total * unitHeight > viewportHeight;
|
||||||
|
|
||||||
const racewayBottom = Math.max(0, Number(racewayMarginBottom ?? RACEWAY_BOTTOM_MARGIN) || 0);
|
const racewayBottom = Math.max(0, Number(racewayMarginBottom ?? RACEWAY_BOTTOM_MARGIN) || 0);
|
||||||
|
const racewayRightOffset = racewayRight != null ? racewayRight : -(RACEWAY_WIDTH - 8);
|
||||||
|
|
||||||
let thumbHeight = 0;
|
let thumbHeight = 0;
|
||||||
let thumbTop = 0;
|
let thumbTop = 0;
|
||||||
@@ -620,8 +622,8 @@ class FillSpace extends Component {
|
|||||||
sx,
|
sx,
|
||||||
debug
|
debug
|
||||||
? (theme) => ({
|
? (theme) => ({
|
||||||
outline: `2px dashed ${theme.palette.primary.main}`,
|
outline: `2px dashed ${theme.palette.primary.main}`,
|
||||||
})
|
})
|
||||||
: undefined,
|
: undefined,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
@@ -649,14 +651,14 @@ class FillSpace extends Component {
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
pr: canScroll ? `${RACEWAY_WIDTH + 8}px` : 0,
|
pr: canScroll ? 1 : 0,
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
...(virtualScrollbar && unitHeight > 0
|
...(virtualScrollbar && unitHeight > 0
|
||||||
? {
|
? {
|
||||||
paddingTop: `${paddingTop}px`,
|
paddingTop: `${paddingTop}px`,
|
||||||
paddingBottom: `${paddingBottom}px`,
|
paddingBottom: `${paddingBottom}px`,
|
||||||
minHeight: totalContentHeight,
|
minHeight: totalContentHeight,
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -701,7 +703,7 @@ class FillSpace extends Component {
|
|||||||
sx={{
|
sx={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: 0,
|
top: 0,
|
||||||
right: 3,
|
right: racewayRightOffset,
|
||||||
bottom: `${racewayBottom}px`,
|
bottom: `${racewayBottom}px`,
|
||||||
width: RACEWAY_WIDTH,
|
width: RACEWAY_WIDTH,
|
||||||
zIndex: 5,
|
zIndex: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user