Skip to content

Commit 8585518

Browse files
committed
Set anchor to always be at start initially
1 parent 9133dc5 commit 8585518

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/app/tile/elm.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
use global_hotkey::hotkey::{Code, Modifiers};
55
use iced::border::Radius;
6-
use iced::widget::scrollable::{Direction, Scrollbar};
6+
use iced::widget::scrollable::{Anchor, Direction, Scrollbar};
77
use iced::widget::text::LineHeight;
88
use iced::widget::{Column, Scrollable, container, space};
99
use iced::{Color, window};
@@ -112,7 +112,12 @@ pub fn view(tile: &Tile, wid: window::Id) -> Element<'_, Message> {
112112
.padding(20);
113113

114114
let scrollbar_direction = if tile.config.theme.show_scroll_bar {
115-
Direction::Vertical(Scrollbar::new().width(2).scroller_width(2))
115+
Direction::Vertical(
116+
Scrollbar::new()
117+
.width(2)
118+
.scroller_width(2)
119+
.anchor(Anchor::Start),
120+
)
116121
} else {
117122
Direction::Vertical(Scrollbar::hidden())
118123
};

0 commit comments

Comments
 (0)