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)textInput: Placeholder View now respects set Width, Paste Fix #449

Closed
wants to merge 7 commits into from

Conversation

hopefulTex
Copy link
Contributor

Pointed out by Discord user TooManyBison , the placeholderView() function would not add padding to match a given Width.
This was inconsistent with the standard View() function, which compares the text width with the content and adds padding accordingly.

This patch brings the width calculation from View() into the placeholderView() function, and additionally includes a minor fix when pasting text.

hopefulTex and others added 7 commits August 29, 2023 14:37
Available length calculation now correctly trims pasted text.
When `placeholder` is set, padding from `Width` was not added within the `placeholderView()` function.
fix(textInput): Width padding added when placeholder is used
Fix position value in padding calculation not being used
(added `m.` to `pos`)
@donovanhubbard
Copy link
Contributor

This looks like a duplicate of #442 which fixes this issue #358

@hopefulTex
Copy link
Contributor Author

This looks like a duplicate of #442 which fixes this issue #358

Oh noice, at the very least it increases chances of this getting fixed!

@maaslalani
Copy link
Contributor

Hey, thank you for the PR, we merged #442!

@meowgorithm
Copy link
Member

Thanks for the PR, Rose! Just closing this one to close the loop.

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.

4 participants