* Remove view selector offsetting (close #1174) * Remove horizontal scroll indicator in view selectorzio/stable
parent
ce1d75e164
commit
6964382bad
|
@ -137,8 +137,6 @@ export const ViewSelector = React.forwardRef<
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
const SCROLLBAR_OFFSET = 12
|
|
||||||
|
|
||||||
export function Selector({
|
export function Selector({
|
||||||
selectedIndex,
|
selectedIndex,
|
||||||
items,
|
items,
|
||||||
|
@ -166,15 +164,15 @@ export function Selector({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
marginTop: -SCROLLBAR_OFFSET,
|
|
||||||
height,
|
height,
|
||||||
backgroundColor: pal.colors.background,
|
backgroundColor: pal.colors.background,
|
||||||
}}>
|
}}>
|
||||||
<ScrollView
|
<ScrollView
|
||||||
horizontal
|
horizontal
|
||||||
style={{position: 'absolute', bottom: -SCROLLBAR_OFFSET}}>
|
showsHorizontalScrollIndicator={false}
|
||||||
|
style={{position: 'absolute'}}>
|
||||||
<View
|
<View
|
||||||
style={[pal.view, styles.outer, {paddingBottom: SCROLLBAR_OFFSET}]}
|
style={[pal.view, styles.outer]}
|
||||||
onLayout={e => {
|
onLayout={e => {
|
||||||
const {height} = e.nativeEvent.layout
|
const {height} = e.nativeEvent.layout
|
||||||
setHeight(height || 60)
|
setHeight(height || 60)
|
||||||
|
|
Loading…
Reference in New Issue