mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Cherry-pick imgui fix @4986dba27.
This commit is contained in:
parent
a7cedddcef
commit
f45276a596
@ -7210,7 +7210,8 @@ static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window, bool s
|
|||||||
target_y = window->ContentSize.y + window->WindowPadding.y * 2.0f;
|
target_y = window->ContentSize.y + window->WindowPadding.y * 2.0f;
|
||||||
scroll.y = target_y - cr_y * (window->SizeFull.y - window->ScrollbarSizes.y - decoration_up_height);
|
scroll.y = target_y - cr_y * (window->SizeFull.y - window->ScrollbarSizes.y - decoration_up_height);
|
||||||
}
|
}
|
||||||
scroll = ImMax(scroll, ImVec2(0.0f, 0.0f));
|
scroll.x = IM_FLOOR(ImMax(scroll.x, 0.0f));
|
||||||
|
scroll.y = IM_FLOOR(ImMax(scroll.y, 0.0f));
|
||||||
if (!window->Collapsed && !window->SkipItems)
|
if (!window->Collapsed && !window->SkipItems)
|
||||||
{
|
{
|
||||||
scroll.x = ImMin(scroll.x, window->ScrollMax.x);
|
scroll.x = ImMin(scroll.x, window->ScrollMax.x);
|
||||||
|
Loading…
Reference in New Issue
Block a user