diff options
author | Michael <michael.foiani@gmail.com> | 2021-07-16 13:06:02 -0400 |
---|---|---|
committer | Michael <michael.foiani@gmail.com> | 2021-07-16 13:06:02 -0400 |
commit | fd2478916a96cb3b75dc2d385d402b4f90b02ce8 (patch) | |
tree | b38509b7d586fee83775849dab639ed5ac74f1aa /src/components/common | |
parent | 5d57346e80cbab3d5e0106b3c9edf25670852d71 (diff) | |
parent | 17ac3b21f6db0107d3c5eeb8885884fa8cfa5a72 (diff) |
Merge branch 'master' into tma954-video-trimming-component
Merging with master that fixes vid quality bugs
Diffstat (limited to 'src/components/common')
-rw-r--r-- | src/components/common/TaggTypeahead.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/common/TaggTypeahead.tsx b/src/components/common/TaggTypeahead.tsx index 672cff69..d5668a38 100644 --- a/src/components/common/TaggTypeahead.tsx +++ b/src/components/common/TaggTypeahead.tsx @@ -40,8 +40,7 @@ const TaggTypeahead: React.FC<TaggTypeaheadProps> = ({ } }, [keyword]); - const onLayout = (e: LayoutChangeEvent) => { - setHeight(e.nativeEvent.layout.height); + const onLayout = (_e: LayoutChangeEvent) => { viewRef.current?.measure( ( _fx: number, @@ -74,7 +73,6 @@ const TaggTypeahead: React.FC<TaggTypeaheadProps> = ({ return ( <View ref={viewRef} onLayout={onLayout}> - {/* <View ref={viewRef} onLayout={onLayout}> */} {!isShowBelowStyle && <View style={styles.overlay} />} <ScrollView style={[ @@ -84,6 +82,9 @@ const TaggTypeahead: React.FC<TaggTypeaheadProps> = ({ : {top: -height, margin: margin}, ]} showsVerticalScrollIndicator={false} + onLayout={(event) => { + setHeight(event.nativeEvent.layout.height); + }} keyboardShouldPersistTaps={'always'}> {results.map((user) => ( <TaggUserRowCell |