diff options
author | 2023-01-08 20:07:11 +0100 | |
---|---|---|
committer | 2023-01-08 20:07:11 +0100 | |
commit | 624a4ada7981eb05c0b50cafa7e9545ad8347cb5 (patch) | |
tree | 4ef01bfbe31333aff06d738ae51272a570c6f11b /examples/websocket | |
parent | 9f85e0c721927f1e3bd195a998ec7a80ec0e7455 (diff) | |
download | iced-624a4ada7981eb05c0b50cafa7e9545ad8347cb5.tar.gz iced-624a4ada7981eb05c0b50cafa7e9545ad8347cb5.tar.bz2 iced-624a4ada7981eb05c0b50cafa7e9545ad8347cb5.zip |
Introduce `RelativeOffset` type in `scrollable`
Diffstat (limited to 'examples/websocket')
-rw-r--r-- | examples/websocket/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs index d1e45571..ccd9c815 100644 --- a/examples/websocket/src/main.rs +++ b/examples/websocket/src/main.rs @@ -1,10 +1,10 @@ mod echo; use iced::alignment::{self, Alignment}; +use iced::executor; use iced::widget::{ button, column, container, row, scrollable, text, text_input, Column, }; -use iced::{executor, Point}; use iced::{ Application, Color, Command, Element, Length, Settings, Subscription, Theme, }; @@ -83,7 +83,7 @@ impl Application for WebSocket { scrollable::snap_to( MESSAGE_LOG.clone(), - Point::new(0.0, 1.0), + scrollable::RelativeOffset::END, ) } }, |