mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Fix select dropdown position when scrolled on a page
This commit is contained in:
parent
44ff957784
commit
29ee576345
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/bplaat
Commit: 29ee576345
Pull-request: https://github.com/SerenityOS/serenity/pull/22370
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
|
|||
|
||||
view().on_request_select_dropdown = [this](Gfx::IntPoint content_position, i32 minimum_width, Vector<Web::HTML::SelectItem> items) {
|
||||
m_select_dropdown->clear();
|
||||
m_select_dropdown->setMinimumWidth(minimum_width);
|
||||
m_select_dropdown->setMinimumWidth(minimum_width / view().device_pixel_ratio());
|
||||
for (auto const& item : items) {
|
||||
select_dropdown_add_item(m_select_dropdown, item);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue