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

egui_web: constrain the IME text agent to the canvas for single-line text input widget #870

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

sumibi-yakitori
Copy link
Contributor

@sumibi-yakitori sumibi-yakitori commented Nov 2, 2021

Closes #869

I didn't restrict the X position of the text agent in #830, so I missed the problem with single line text input as well.

To make it more perfect, I think that the X position of the text agent needs to be limited by the right edge of the text input widget that is currently being entered.
However, I am not familiar with the structure of egui and do not know how to get the currently inputting widget in this code.

Hence, this PR is a tentatively fix for this problem.

@emilk emilk merged commit 10c8ffa into emilk:master Nov 6, 2021
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.

Problems when typing long sentences into single-line text input on the web
2 participants