Skip to content
Open
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
6 changes: 6 additions & 0 deletions packages/window_manager/windows/window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,12 @@ void WindowManager::SetBounds(const flutter::EncodableMap& args) {
}

SetWindowPos(hwnd, HWND_TOP, x, y, width, height, uFlags);

// Force Flutter view to sync its render surface with the new window size.
// Without this, the Flutter render surface may not update correctly when
// the window is resized, causing visual artifacts like black areas or
// misaligned UI elements.
ForceChildRefresh();
}

void WindowManager::SetMinimumSize(const flutter::EncodableMap& args) {
Expand Down