Skip to content

Commit

Permalink
Merge pull request #24502 from kosmydel/@swm/fix-overscroll
Browse files Browse the repository at this point in the history
Fix: compose box becomes overlapped by the keyboard
  • Loading branch information
neil-marcellini authored Sep 18, 2023
2 parents 4c535d6 + f8383d8 commit 2905e6d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function ReportActionsList({
<InvertedFlatList
accessibilityLabel={translate('sidebarScreen.listOfChatMessages')}
ref={reportScrollManager.ref}
style={styles.overscrollBehaviorContain}
data={sortedReportActions}
renderItem={renderItem}
contentContainerStyle={styles.chatContentScrollView}
Expand Down
3 changes: 3 additions & 0 deletions src/styles/utilities/overflow.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {CSSProperties} from 'react';
import overflowAuto from './overflowAuto';
import overscrollBehaviorContain from './overscrollBehaviorContain';

/**
* Overflow utility styles with Bootstrap inspired naming.
Expand All @@ -23,5 +24,7 @@ export default {
overscrollBehaviorX: 'none',
},

overscrollBehaviorContain,

overflowAuto,
} satisfies Record<string, CSSProperties>;
3 changes: 3 additions & 0 deletions src/styles/utilities/overscrollBehaviorContain/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
overscrollBehavior: 'contain',
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};

0 comments on commit 2905e6d

Please sign in to comment.