Keep items within rect

The text was off by one unit after the last commit
This commit is contained in:
Amos 2022-01-18 11:37:53 +01:00
parent 6bc6996f9a
commit c796a44aa9

View File

@ -196,7 +196,7 @@ void CConsole::BasePanel(bool* bDraw)
m_vecSuggestWindowPos = ImGui::GetItemRectMin();
m_vecSuggestWindowPos.y += ImGui::GetItemRectSize().y;
m_vecSuggestWindowSize = ImVec2(500, std::clamp((int)m_vsvSuggest.size() * 20, 0, 122));
m_vecSuggestWindowSize = ImVec2(500, std::clamp((int)m_vsvSuggest.size() * 20, 0, 123));
ImGui::SameLine();
if (ImGui::Button("Submit"))