Skip to content

fix: collapsed not bug #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: collapsed not bug #128

wants to merge 1 commit into from

Conversation

BuchiNy
Copy link

@BuchiNy BuchiNy commented May 22, 2025

Problem

long note it appears full-sized, then if you collapse it and expand it, it cuts the note, and you can no longer view the whole note

Solution

make the note scrollable when it has expended, after it has been collapsed to allow the user to simply scroll through the long note. similar to when you first view the long note.

Changes

Modified the BodyFragment.kt file under expandedRecylerView function

image
image

Modified the BodyFragment.kt file under collapseRecylerView function

image

How it works

  1. Reset the height of the RecyclerView when expanding and collapsing.
  2. Use the current height of the data list instead of the measured height.
  3. Display the expanded data in RecyclerView to allow scrolling in the view. list.

Testing

Create a very long note, collapse the note, and then expand it again. Verify you can still scroll through the note

fix for when you collapse a long note and then expand it, the note text would get cut and it is scrollable.
@BuchiNy BuchiNy linked an issue May 22, 2025 that may be closed by this pull request
@BuchiNy BuchiNy requested a review from Naomi-Nyama May 22, 2025 11:42
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.

Note collapsing bug
1 participant