mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
UI/Qt: Send the rect of the window itself to WebContent
This ensures that the live values we return to WPT match the requested values.
This commit is contained in:
parent
54f6db01af
commit
e4f0e745a4
Notes:
github-actions[bot]
2024-10-29 11:04:57 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e4f0e745a4c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2028 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 2 additions and 2 deletions
|
@ -1168,7 +1168,7 @@ void BrowserWindow::resizeEvent(QResizeEvent* event)
|
|||
QWidget::resizeEvent(event);
|
||||
|
||||
for_each_tab([&](auto& tab) {
|
||||
tab.view().set_window_size({ frameSize().width(), frameSize().height() });
|
||||
tab.view().set_window_size({ width(), height() });
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1177,7 +1177,7 @@ void BrowserWindow::moveEvent(QMoveEvent* event)
|
|||
QWidget::moveEvent(event);
|
||||
|
||||
for_each_tab([&](auto& tab) {
|
||||
tab.view().set_window_position({ event->pos().x(), event->pos().y() });
|
||||
tab.view().set_window_position({ x(), y() });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue