mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibGUI: Automatically scroll to a new column on adding it in ColumnsView
This commit is contained in:
committed by
Andreas Kling
parent
35e3df7f13
commit
70885a3dee
Notes:
sideshowbarker
2024-07-17 16:23:55 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/70885a3dee Pull-request: https://github.com/SerenityOS/serenity/pull/16700
@@ -303,6 +303,11 @@ void AbstractScrollableWidget::scroll_to_bottom()
|
||||
scroll_into_view({ 0, content_height(), 0, 0 }, Orientation::Vertical);
|
||||
}
|
||||
|
||||
void AbstractScrollableWidget::scroll_to_right()
|
||||
{
|
||||
scroll_into_view({ content_width(), 0, 0, 0 }, Orientation::Horizontal);
|
||||
}
|
||||
|
||||
void AbstractScrollableWidget::set_automatic_scrolling_timer_active(bool active)
|
||||
{
|
||||
if (active == m_active_scrolling_enabled)
|
||||
|
||||
Reference in New Issue
Block a user