mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
Window: Fixed SetNextWindowSizeConstraints() with non-rounded positions making windows drift. (#2067, #2530)
This commit is contained in:
parent
9c1f02a42c
commit
526e2303bc
3 changed files with 4 additions and 1 deletions
|
|
@ -4648,6 +4648,8 @@ static ImVec2 CalcSizeAfterConstraint(ImGuiWindow* window, ImVec2 new_size)
|
|||
g.NextWindowData.SizeCallback(&data);
|
||||
new_size = data.DesiredSize;
|
||||
}
|
||||
new_size.x = ImFloor(new_size.x);
|
||||
new_size.y = ImFloor(new_size.y);
|
||||
}
|
||||
|
||||
// Minimum size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue