Skip to content

fix italic text getting cut off in bookmarks list#1005

Merged
Adamantcheese merged 1 commit into
Adamantcheese:multi-featurefrom
Astridchan:fix-italic-text-in-bookmark-list
Jul 23, 2020
Merged

fix italic text getting cut off in bookmarks list#1005
Adamantcheese merged 1 commit into
Adamantcheese:multi-featurefrom
Astridchan:fix-italic-text-in-bookmark-list

Conversation

@Astridchan

Copy link
Copy Markdown

1595432493265

Seems to be an old issue, found several reports of this issue on stackoverflow (some dating back to 2010!):
https://stackoverflow.com/questions/4353836/italic-textview-with-wrap-contents-seems-to-clip-the-text-at-right-edge
https://stackoverflow.com/questions/10243374/textview-cutting-off-a-letter-in-android
https://stackoverflow.com/questions/44074858/android-textview-text-get-cut-off-on-the-sides-with-custom-font
etc.

tl;dr:

This is because the wrap_contents creates a rectangle and the textview text tries to fit in but in italics some part in the starting or end is clipped because it is outside that rectangle made by wrap_content.

Source for fix: https://stackoverflow.com/a/61870394

@Adamantcheese Adamantcheese merged commit a3eaf63 into Adamantcheese:multi-feature Jul 23, 2020
@Astridchan Astridchan deleted the fix-italic-text-in-bookmark-list branch July 27, 2020 09:33
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.

2 participants