Closed flamendless closed 3 years ago
The code
if (ImNodes::Ez::BeginNode(node, node->m_var_name, &node->m_pos, &node->m_selected)) { if (ImGui::BeginTable("test", 2)) { ImGui::TableNextRow(); ImGui::TableNextColumn(); ImGui::Text("Name:"); ImGui::Text("Value:"); ImGui::TableNextColumn(); ImGui::Text("%s", node->m_var_name); ImGui::Text("%s", node->m_var_value); ImGui::EndTable(); } ImNodes::Ez::InputSlots(node->m_in_slots.data(), node->m_in_slots.size()); ImNodes::Ez::OutputSlots(node->m_out_slots.data(), node->m_out_slots.size()); //more ImNodes::Ez::EndNode(); }
shows the screenshot below
The use case is to cleanly show the names of the fields and the values of the fields in a tabular form.
flag ImGuiTableFlags_SizingFixedFit solves the issue for me
ImGuiTableFlags_SizingFixedFit
Thank you! It works
The code
shows the screenshot below![2021-03-14_10-37](https://user-images.githubusercontent.com/17418737/111055479-2fbe2380-84b1-11eb-8398-40f4142ed541.png)
The use case is to cleanly show the names of the fields and the values of the fields in a tabular form.