Skip to content

Commit 65b62e5

Browse files
committed
Added vertical scrollbar to conditionally return
1 parent 01c791d commit 65b62e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/visu/pars/Elements/Scrollbar/scrollbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {HorizontalScrollbar} from './horizontal';
3+
import {VerticalScrollbar} from './vertical';
34
import { IScrollbarShape } from '../../../Interfaces/javainterfaces';
45
import * as util from '../../Utils/utilfunctions';
56
import { parseDynamicShapeParameters, parseScrollUpdate } from '../Features/Events/eventManager';
@@ -28,6 +29,6 @@ export const Scrollbar :React.FunctionComponent<Props> = ({section})=>
2829
if (horz_position){
2930
return(<HorizontalScrollbar shape={scrollbar} dynamicParameters={dynamicShapeParameters} updateFunction={update}></HorizontalScrollbar>)
3031
} else {
31-
return null
32+
return(<VerticalScrollbar shape={scrollbar} dynamicParameters={dynamicShapeParameters} updateFunction={update}></VerticalScrollbar>)
3233
}
3334
}

0 commit comments

Comments
 (0)