Skip to content

Fix text overflow under top panel in text editor (closes #439) - #484

Closed
ut88080 wants to merge 1 commit into
FossifyOrg:mainfrom
ut88080:fix/issue-439-text-overflow
Closed

Fix text overflow under top panel in text editor (closes #439)#484
ut88080 wants to merge 1 commit into
FossifyOrg:mainfrom
ut88080:fix/issue-439-text-overflow

Conversation

@ut88080

@ut88080 ut88080 commented Sep 1, 2026

Copy link
Copy Markdown

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:

  • LinearLayout wrapper (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

  • v1.6.1 (and earlier)

Closes

#439

- 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
@ut88080
ut88080 requested a review from naveensingh as a code owner September 1, 2026 09:42
@fossifybot

fossifybot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fossify accepts code contributions only for open issues labeled help wanted. This pull request does not meet that requirement or one of the documented exceptions, so it is being closed without review. Please read the contribution guidelines before starting work.

@fossifybot fossifybot Bot closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants