Skip to content

Commit

Permalink
Update Utils.cpp for preferred ImGui method
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonzkiller committed Oct 26, 2024
1 parent 13e6fab commit 52d2f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool IsLuaCData(const sol::object& acpObject)

float GetAlignedItemWidth(const int64_t acItemsCount)
{
return (ImGui::GetWindowContentRegionMax().x - ImGui::GetWindowContentRegionMin().x - static_cast<float>(acItemsCount - 1) * ImGui::GetStyle().ItemSpacing.x) /
return (ImGui::GetContentRegionAvail().x - static_cast<float>(acItemsCount - 1) * ImGui::GetStyle().ItemSpacing.x) /
static_cast<float>(acItemsCount);
}

Expand Down

0 comments on commit 52d2f4b

Please sign in to comment.