diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-15 15:13:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 15:13:40 -0700 |
commit | 6964382bad7d4d53b7b6f685190c873cda2d100f (patch) | |
tree | 0fab12d455e870f7088f26f402277d2de1fd9d3f /src/view/com/util/ViewSelector.tsx | |
parent | ce1d75e1640908dbf95ff675908ad0cbea2d3896 (diff) | |
download | voidsky-6964382bad7d4d53b7b6f685190c873cda2d100f.tar.zst |
* Remove view selector offsetting (close #1174) * Remove horizontal scroll indicator in view selector
Diffstat (limited to 'src/view/com/util/ViewSelector.tsx')
-rw-r--r-- | src/view/com/util/ViewSelector.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/view/com/util/ViewSelector.tsx b/src/view/com/util/ViewSelector.tsx index 91436f4b4..a25ca4d8e 100644 --- a/src/view/com/util/ViewSelector.tsx +++ b/src/view/com/util/ViewSelector.tsx @@ -137,8 +137,6 @@ export const ViewSelector = React.forwardRef< }, ) -const SCROLLBAR_OFFSET = 12 - export function Selector({ selectedIndex, items, @@ -166,15 +164,15 @@ export function Selector({ width: '100%', position: 'relative', overflow: 'hidden', - marginTop: -SCROLLBAR_OFFSET, height, backgroundColor: pal.colors.background, }}> <ScrollView horizontal - style={{position: 'absolute', bottom: -SCROLLBAR_OFFSET}}> + showsHorizontalScrollIndicator={false} + style={{position: 'absolute'}}> <View - style={[pal.view, styles.outer, {paddingBottom: SCROLLBAR_OFFSET}]} + style={[pal.view, styles.outer]} onLayout={e => { const {height} = e.nativeEvent.layout setHeight(height || 60) |