mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
LibWeb: Fix select dropdown position when scrolled on a page
This commit is contained in:
parent
44ff957784
commit
29ee576345
2 changed files with 2 additions and 2 deletions
|
@ -366,7 +366,7 @@ void WebContentClient::did_request_color_picker(Color const& current_color)
|
|||
void WebContentClient::did_request_select_dropdown(Gfx::IntPoint content_position, i32 minimum_width, Vector<Web::HTML::SelectItem> const& items)
|
||||
{
|
||||
if (m_view.on_request_select_dropdown)
|
||||
m_view.on_request_select_dropdown(m_view.to_widget_position(content_position), m_view.to_widget_position(Gfx::IntPoint { minimum_width, 0 }).x(), items);
|
||||
m_view.on_request_select_dropdown(content_position, minimum_width, items);
|
||||
}
|
||||
|
||||
void WebContentClient::did_finish_handling_input_event(bool event_was_accepted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue