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

UI glitch(?) #3

Open
andrey-lisovskiy opened this issue Feb 5, 2018 · 5 comments
Open

UI glitch(?) #3

andrey-lisovskiy opened this issue Feb 5, 2018 · 5 comments

Comments

@andrey-lisovskiy
Copy link

Hi, thanks for useful example.
I've noticed some UI glitch(?). Try to add image to empty TextView and then add/remove some letter/space. You will see like image is jumping. Why is it behaves like this?

@rickytan
Copy link
Owner

How wide is your image view? Could you paste a screenshot?

@andrey-lisovskiy
Copy link
Author

You can use your own example with dog, insert it and then press space, backspace few times and see it.

@rickytan
Copy link
Owner

rickytan commented Feb 12, 2018

This is caused by the rect on line 69

(CGRect) rect = (origin = (x = 5, y = 0), size = (width = 150, height = 150))

After tap a space, it changed to:

(CGRect) rect = (origin = (x = 5, y = 0), size = (width = 150, height = 155.7890625))

And the caret also become higher

@andrey-lisovskiy
Copy link
Author

Any solution for this?

@rickytan
Copy link
Owner

Not yet. I think this issue is due to the NSLayoutManger

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

2 participants