mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Ladybird/AppKit: Convert select dropdown position to correct scale
This commit is contained in:
parent
b2104361cf
commit
656f764b1b
1 changed files with 2 additions and 1 deletions
|
@ -623,7 +623,8 @@ static void copy_data_to_clipboard(StringView data, NSPasteboardType pasteboard_
|
|||
item:item];
|
||||
}
|
||||
|
||||
auto* event = Ladybird::create_context_menu_mouse_event(self, content_position);
|
||||
auto device_pixel_ratio = m_web_view_bridge->device_pixel_ratio();
|
||||
auto* event = Ladybird::create_context_menu_mouse_event(self, Gfx::IntPoint { content_position.x() / device_pixel_ratio, content_position.y() / device_pixel_ratio });
|
||||
[NSMenu popUpContextMenu:self.select_dropdown withEvent:event forView:self];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue