GUI: span avail width

This commit is contained in:
tildearrow 2024-03-20 17:55:49 -05:00
parent fbe5b74cc6
commit 056fd04c95

View file

@ -41,7 +41,7 @@ void FurnaceGUI::drawSysDefs(std::vector<FurnaceGUISysDef>& category, bool& acce
} else { } else {
sysDefID=fmt::sprintf("%s/%dS",sysDefIDLeader,index); sysDefID=fmt::sprintf("%s/%dS",sysDefIDLeader,index);
} }
treeNode=ImGui::TreeNode(sysDefID.c_str()); treeNode=ImGui::TreeNodeEx(sysDefID.c_str(),i.orig.empty()?ImGuiTreeNodeFlags_SpanAvailWidth:0);
ImGui::SameLine(); ImGui::SameLine();
} }
if (!i.orig.empty()) { if (!i.orig.empty()) {