mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Make request_select_dropdown more similar to context menu api
This commit is contained in:
committed by
Andreas Kling
parent
aee8b39c65
commit
cbb660c756
@@ -387,7 +387,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(content_position, minimum_width, items);
|
||||
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);
|
||||
}
|
||||
|
||||
void WebContentClient::did_finish_handling_input_event(bool event_was_accepted)
|
||||
|
||||
Reference in New Issue
Block a user