mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
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:
parent
3961a4f16a
commit
9b6ae962d0
Notes:
github-actions[bot]
2025-03-22 16:29:25 +00:00
Author: https://github.com/trflynn89
Commit: 9b6ae962d0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4036
3 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue