Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions rivet/runtime/windows/src/hooks/page_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,14 @@ pub(crate) unsafe fn relayout(window: HWND) {
}) {
let layout: unsafe extern "system" fn(*mut c_void) =
std::mem::transmute(base + row().layout_immediately);
// The browser view sits in the client view, below the non-client view that gives the
// client view its bounds. That view is laid out first, so a new appbar width reaches the
// page even where the frame view's own layout is not recorded, as on Whale.
if let Some(non_client) = crate::chromium::view::parent_of(host)
.and_then(|client| crate::chromium::view::parent_of(client))
{
layout(non_client as *mut c_void);
}
layout(host as *mut c_void);
}
}
Expand Down
Loading