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

Text alignment stop aligning text #220

Open
cp-divyesh-v opened this issue Dec 7, 2024 · 3 comments
Open

Text alignment stop aligning text #220

cp-divyesh-v opened this issue Dec 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cp-divyesh-v
Copy link
Contributor

The issue is when I have some text, and it's align centre and next line is right align and i keep moving centre align text to left and centre repetitively it's stop working after few repetitions.

Here is the video clip to reproduce the issue
https://github.com/user-attachments/assets/53d7f77c-0542-4547-b5d0-150f618fe01a

@danielsaidi
Copy link
Owner

Hi @cp-divyesh-v

Thank you for reporting thing 👍

@danielsaidi danielsaidi added the bug Something isn't working label Dec 9, 2024
@cp-divyesh-v
Copy link
Contributor Author

@danielsaidi
I have investigated it and found it's returning from
file: RichTextViewComponent+Alignment line 26
if richTextAlignment == alignment { return }

Getting wrong attributes from variable var richTextAttributes: RichTextAttributes { line 13 file RichTextViewComponent+Attributes

If we log attributedString from context after applying alignment, it's having different alignment then we applied
I am trying to investigate and fix it further in my free, sharing this if you are going to fix it then it will save your time a bit.

@danielsaidi
Copy link
Owner

Thank you @cp-divyesh-v - I have been too busy lately to focus on RTK, but I'm happy to fix anything you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants