Introduce RelativeOffset type in scrollable

This commit is contained in:
Héctor Ramón Jiménez 2023-01-08 20:07:11 +01:00
parent 9f85e0c721
commit 624a4ada79
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 75 additions and 69 deletions

View file

@ -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,
)
}
},