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

Fix bug: TagView with deletableView #8

Merged
merged 2 commits into from
May 1, 2016
Merged

Conversation

KANGOD
Copy link
Contributor

@KANGOD KANGOD commented Oct 8, 2015

TagView with deletableView will make a new line too early, since tagWidth is calculated in mistake.
In line 228, there should be + offset + (textPaddingRight + offset) instead of + textPaddingLeft + textPaddingRight.
Dynamically get PaddingLeft and PaddingRight of deletableView, so you can change it's padding in future without modify this code snippet.

TagView with deletableView will make a new line too early, since tagWidth is calculated in mistake.
In line 228, there should be `+ offset + (textPaddingRight + offset)` instead of `+ textPaddingLeft + textPaddingRight`.
Dynamically get PaddingLeft and PaddingRight of deletableView, so you can change it's padding in future without modify this code snippet.
@kaedea
Copy link
Owner

kaedea commented Oct 9, 2015

Thanks for pr, I will handle this issue in next version. :)

@KANGOD
Copy link
Contributor Author

KANGOD commented Oct 9, 2015

Yeah, also check this: KANGOD@fb906c3 line 240 of TagView.java
I came up with a tag Te... instead of Test2 at end-of-line. With only 5px's mistake. Sigh poisonous boundary condition.

@kaedea
Copy link
Owner

kaedea commented Oct 9, 2015

Actually, the calculation need some improvement. Thank you for the details.

@kaedea
Copy link
Owner

kaedea commented Oct 9, 2015

I think I have to create a dev branch so that any improving code can be added easily/

@kaedea kaedea merged commit 8eb34a0 into kaedea:master May 1, 2016
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.

None yet

2 participants