diff options
| author | alex-ds13 <145657253+alex-ds13@users.noreply.github.com> | 2025-11-25 14:42:06 +0000 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-29 23:23:41 +0100 |
| commit | b46c556f863917a753c55359fb05543db0ccef7c (patch) | |
| tree | 5e7cd96ef880fd66cfd8ad23bc685d1ffc5cac33 /examples/name | |
| parent | chore: add missing hint_factor fields (iced update) (diff) | |
| download | iced_selection-b46c556f863917a753c55359fb05543db0ccef7c.tar.gz | |
feat: correct selection on wrapped lines and allow mouse drag out of bounds
Diffstat (limited to 'examples/name')
| -rw-r--r-- | examples/name/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/name/src/main.rs b/examples/name/src/main.rs index 9bf4b72..2e2582c 100644 --- a/examples/name/src/main.rs +++ b/examples/name/src/main.rs @@ -1,4 +1,3 @@ -use iced::advanced::text::Wrapping; use iced::widget::operation::focus_next; use iced::widget::{center, column, text_editor}; use iced::{Center, Element, Task}; @@ -41,7 +40,7 @@ impl State { fn view(&self) -> Element<'_, Message> { center( column![ - text!("Hello {}", &self.name).wrapping(Wrapping::None), + text!("Hello {}", &self.name), text_editor(&self.content).on_action(Message::UpdateText) ] .spacing(10) |
