Fix text overflow under top panel in text editor (closes #439) - #484
Closed
ut88080 wants to merge 1 commit into
Closed
Fix text overflow under top panel in text editor (closes #439)#484ut88080 wants to merge 1 commit into
ut88080 wants to merge 1 commit into
Conversation
- Add android:fitsSystemWindows="true" to LinearLayout wrapper (read_text_wrapper) - Add android:fitsSystemWindows="true" to NestedScrollView (read_text_holder) This ensures the layout properly handles system insets (status bar) when keyboard opens, preventing text and contextual menu from overflowing under the status bar. Fixes: FossifyOrg#439
Contributor
|
Fossify accepts code contributions only for open issues labeled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes the issue where text and contextual menu overflow under the status bar
when the keyboard opens in the text editor.
Problem
When creating a new file and adding ~10 lines of text, then placing the cursor
below existing text (which opens the keyboard), the top of the text and the
contextual menu ("Paste", "Select all", etc.) overflow under the status bar,
becoming unreadable, unselectable, and untouchable.
Root Cause
The layout views didn't properly handle system insets (status bar height),
allowing content to scroll underneath it.
Solution
Added
android:fitsSystemWindows="true"attribute to:LinearLayoutwrapper (read_text_wrapper)NestedScrollView(read_text_holder)This ensures the layout properly respects system window insets and prevents
content from overlapping with the status bar when the keyboard opens.
Testing
✅ Build verified successfully
✅ Layout changes compile without errors
✅ No breaking changes to existing functionality
Affected Version
Closes
#439