1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibGUI: Make GUI::ScrollBar inherit from AbstractSlider

This commit is contained in:
Andreas Kling 2020-12-30 15:20:02 +01:00
parent cb67264f61
commit 1215d2a642
6 changed files with 33 additions and 89 deletions

View file

@ -459,7 +459,7 @@ void TerminalWidget::relayout(const Gfx::IntSize& size)
size.height() - frame_thickness() * 2,
};
m_scrollbar->set_relative_rect(scrollbar_rect);
m_scrollbar->set_page(new_rows);
m_scrollbar->set_page_step(new_rows);
}
Gfx::IntSize TerminalWidget::compute_base_size() const