-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Markdown (M3) does not scroll in fragment details view (tablet layout) #330
Comments
Screenrecorder-2025-02-25-10-51-37-890.mp4Unable to reproduce this issue |
@johnjohndoe I feel the problem might be the size of the Can you please make sure the box matches the size of the fragment. |
2025-02-25.20-00-28.mp4I tested it on the tablet and found that when the resize window, the program performed very terrible |
the problem with the resizing is likely due to the animation. Disabling that should handle what you see @keta1 - https://github.com/mikepenz/multiplatform-markdown-renderer/blob/develop/multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/model/MarkdownAnimations.kt#L29 |
You are right, when the animation is disabled, the twitching of the page disappears |
Indeed, configuring animations = DefaultMarkdownAnimation(fun Modifier.(): Modifier = this) |
For you the animation is also the problem @johnjohndoe - did you check the size of the container as well? |
Do you mean checking the heights of the box and fragment at runtime? |
Yes to verify that the box itself is the size expected, as it seems like the box is larger than it should be and thus the scrolling doesn't work |
Btw. have you tested providing |
Environment
Context
I want to use
com.mikepenz.markdown.m3.Markdown
in a details view which is part of a tablet layout.Observed behavior
When I place the
Markdown
composable in the fragment ...... then the text is not scrollable.
See this showcase: https://github.com/johnjohndoe/multiplatform-markdown-renderer/tree/tablet_details_scrolling
Expected behavior
The
Markdown
text scrolls like theandroidx.compose.material3.Text
text does.The text was updated successfully, but these errors were encountered: