aboutsummaryrefslogtreecommitdiff
path: root/examples/name/src
diff options
context:
space:
mode:
authoralex-ds13 <145657253+alex-ds13@users.noreply.github.com>2025-11-25 14:42:06 +0000
committerPolesznyák Márk <contact@pml68.dev>2025-12-29 23:23:41 +0100
commitb46c556f863917a753c55359fb05543db0ccef7c (patch)
tree5e7cd96ef880fd66cfd8ad23bc685d1ffc5cac33 /examples/name/src
parentchore: add missing hint_factor fields (iced update) (diff)
downloadiced_selection-b46c556f863917a753c55359fb05543db0ccef7c.tar.gz
feat: correct selection on wrapped lines and allow mouse drag out of bounds
Diffstat (limited to 'examples/name/src')
-rw-r--r--examples/name/src/main.rs3
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)