Skip to content
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

RichSpanStyle not taking scroll position into account #447

Open
Wavesonics opened this issue Dec 9, 2024 · 2 comments
Open

RichSpanStyle not taking scroll position into account #447

Wavesonics opened this issue Dec 9, 2024 · 2 comments

Comments

@Wavesonics
Copy link
Contributor

I having a problem with drawCustomStyle on RichSpanStyle, it looks like scroll position isn't being taken into account:

scroll-issue.mp4

It is called again when I scroll, but I get the exact same y coords.

Maybe the problem actually lies in:
layoutResult.getBoundingBoxes()

@Wavesonics Wavesonics changed the title RichSpanStyle not re-rendering on scroll RichSpanStyle not taking scroll position into account Dec 10, 2024
@Wavesonics
Copy link
Contributor Author

Wavesonics commented Dec 10, 2024

I could be wrong, but I think #448 is required in order for us to be able to fix this issue.

Darn, TextFieldState does not support AnnotatedStrings.

@Wavesonics
Copy link
Contributor Author

Wavesonics commented Dec 13, 2024

I tested CodeBlock as well, same issue. I don't think there is a solution really with BasicTextField as it stands, there is simply no way to get at the scroll state in order to accommodate for it. Would love to be proved wrong though if anyone can figure it out!

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

No branches or pull requests

1 participant