SetCursorScreenPos() fixed not adjusting CursorMaxPos as well

This commit is contained in:
ocornut 2016-06-29 10:25:47 +02:00
parent b9b3dec7da
commit fe7274b6c7
1 changed files with 1 additions and 0 deletions

View File

@ -5129,6 +5129,7 @@ void ImGui::SetCursorScreenPos(const ImVec2& screen_pos)
{
ImGuiWindow* window = GetCurrentWindow();
window->DC.CursorPos = screen_pos;
window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos);
}
float ImGui::GetScrollX()