mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Keep items within rect
The text was off by one unit after the last commit
This commit is contained in:
parent
6bc6996f9a
commit
c796a44aa9
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user