Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tope99 committed Dec 25, 2023
1 parent fe332b7 commit 5d25513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5756,7 +5756,7 @@ void Table::DoExport(std::ostream& os, UIContext& ctx)
}
if (scrollWhenDragging) //must come last
{
os << ctx.ind << "ImGui::PushStyleColor(ImGuiCol_ScrollbarGrab, {});\n";
os << ctx.ind << "ImGui::PushStyleColor(ImGuiCol_ScrollbarGrab, 0x0);\n";
}

os << ctx.ind << "if (ImGui::BeginTable("
Expand All @@ -5771,8 +5771,8 @@ void Table::DoExport(std::ostream& os, UIContext& ctx)
if (scrollWhenDragging)
{
os << ctx.ind << "ImGui::PopStyleColor();\n";
os << ctx.ind << "ImRad::ScrollWhenDragging();\n";
os << ctx.ind << "ImGui::PushStyleColor(ImGuiCol_ScrollbarGrab, {});\n";
os << ctx.ind << "ImRad::ScrollWhenDragging(true);\n";
os << ctx.ind << "ImGui::PushStyleColor(ImGuiCol_ScrollbarGrab, 0x0);\n";
}

for (const auto& cd : columnData)
Expand Down

0 comments on commit 5d25513

Please sign in to comment.