mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:45:06 +00:00
LibWeb: Make input widget (buttons, text boxes, etc) scroll with page
We now relayout all LayoutWidgets when the view is scrolled. This will cause them to follow along with the rest of the page content.
This commit is contained in:
parent
889a8e7d0f
commit
e58e315e0f
4 changed files with 28 additions and 3 deletions
|
@ -624,6 +624,7 @@ void PageView::dump_selection(const char* event_name)
|
|||
void PageView::did_scroll()
|
||||
{
|
||||
main_frame().set_viewport_rect(viewport_rect_in_content_coordinates());
|
||||
main_frame().did_scroll({});
|
||||
}
|
||||
|
||||
Gfx::Point PageView::compute_mouse_event_offset(const Gfx::Point& event_position, const LayoutNode& layout_node) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue