Skip to content

Commit

Permalink
fix layout test
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Dec 10, 2023
1 parent 0c76202 commit b32fb52
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1090,20 +1090,20 @@ namespace ImGuiExt

ImGui::Button("Outside Begin", ImVec2(150, 0));
{
ImLayout::BeginCollapseLayout("##id01", &isOpen, "Left", 150, ImLayout::WRAP_PARENT);
ImLayout::BeginCollapseLayout_2("##id01", &isOpen, "Left", 150, ImLayout::WRAP_PARENT);
if (isOpen) {
renderContent(false);
}
ImLayout::EndCollapseLayout();

ImGui::SameLine();

ImLayout::BeginCollapseLayout("##id02", &isOpen2, "Right", 150, ImLayout::WRAP_PARENT);
ImLayout::BeginCollapseLayout_2("##id02", &isOpen2, "Right", 150, ImLayout::WRAP_PARENT);
if (isOpen2) {

renderContent(false);

ImLayout::BeginCollapseLayout("##id03", &isOpen3, "Child", ImLayout::MATCH_PARENT, 120);
ImLayout::BeginCollapseLayout_2("##id03", &isOpen3, "Child", ImLayout::MATCH_PARENT, 120);

ImLayout::EndCollapseLayout();
}
Expand All @@ -1121,7 +1121,7 @@ namespace ImGuiExt
ImGui::Button("Outside Begin", ImVec2(-0.1f, 0));
{
ImGuiCollapseLayoutOptions options;
ImLayout::BeginCollapseLayoutEx("##id01", &isOpen, "Left", ImLayout::MATCH_PARENT, ImLayout::WRAP_PARENT, options);
ImLayout::BeginCollapseLayoutEx_3("##id01", &isOpen, "Left", ImLayout::MATCH_PARENT, ImLayout::WRAP_PARENT, options);

//std::cout << "Size1: " << ImGui::GetContentRegionAvail().y << std::endl;

Expand Down

0 comments on commit b32fb52

Please sign in to comment.