LibWebView+UI: Handle DPR for select elements like other menus

The select dropdown was doing its own ad-hoc method of handling DPR. We
now handle it just like other context menus. Previously, the drop down
in the AppKit chrome was twice as large as it should be.
This commit is contained in:
Timothy Flynn 2025-03-21 10:53:59 -04:00 committed by Alexander Kalenik
parent 3961a4f16a
commit 9b6ae962d0
Notes: github-actions[bot] 2025-03-22 16:29:25 +00:00
3 changed files with 3 additions and 4 deletions

View file

@ -610,7 +610,7 @@ void WebContentClient::did_request_select_dropdown(u64 page_id, Gfx::IntPoint co
{
if (auto view = view_for_page_id(page_id); view.has_value()) {
if (view->on_request_select_dropdown)
view->on_request_select_dropdown(content_position, minimum_width, items);
view->on_request_select_dropdown(view->to_widget_position(content_position), minimum_width / view->device_pixel_ratio(), items);
}
}