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

Selection is rendered outside of TextInput #2198

Closed
2 tasks done
DaraJKong opened this issue Jan 12, 2024 · 0 comments · Fixed by #2199
Closed
2 tasks done

Selection is rendered outside of TextInput #2198

DaraJKong opened this issue Jan 12, 2024 · 0 comments · Fixed by #2199
Labels
bug Something isn't working rendering text widget
Milestone

Comments

@DaraJKong
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When selecting long text inside of a TextInput, the selection is displayed out of the bounds of the widget.
It happens when using Ctrl+A and also when clicking & dragging normally.

2024-01-12.00-05-59.mp4

The issue happens only in the master branch, the crates.io version is fine.

I don't think it's necessary, but I made a SSCCE: https://github.com/DaraJKong/iced/blob/fix/selection_outside_input/examples/buggy_text_selection/src/main.rs

What is the expected behavior?

The selection when highlighting long text should be clipped inside the TextInput widget, instead of appearing outside of it.

Version

master

Operating System

Linux

Do you have any log output?

No response

@DaraJKong DaraJKong added the bug Something isn't working label Jan 12, 2024
@hecrj hecrj added this to the 0.12 milestone Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rendering text widget
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants