Skip to content

Commit

Permalink
Demo: Assets Browser: use correct axis for layout computation, to all…
Browse files Browse the repository at this point in the history
…ow making items non-square. (#8207)
  • Loading branch information
JackHolmes authored Dec 4, 2024
1 parent 70b6ba4 commit 6f6ac84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10175,7 +10175,7 @@ struct ExampleAssetsBrowser
}

ImGuiIO& io = ImGui::GetIO();
ImGui::SetNextWindowContentSize(ImVec2(0.0f, LayoutOuterPadding + LayoutLineCount * (LayoutItemSize.x + LayoutItemSpacing)));
ImGui::SetNextWindowContentSize(ImVec2(0.0f, LayoutOuterPadding + LayoutLineCount * (LayoutItemSize.y + LayoutItemSpacing)));
if (ImGui::BeginChild("Assets", ImVec2(0.0f, -ImGui::GetTextLineHeightWithSpacing()), ImGuiChildFlags_Borders, ImGuiWindowFlags_NoMove))
{
ImDrawList* draw_list = ImGui::GetWindowDrawList();
Expand Down

0 comments on commit 6f6ac84

Please sign in to comment.