Skip to content
This repository was archived by the owner on Sep 2, 2019. It is now read-only.

Commit 019ea4a

Browse files
committed
adjust table column size.
1 parent 343c242 commit 019ea4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/awio/overlay.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,9 @@ void RenderTableRow(Table& table, int row, int height)
858858
//ImGui::RenderFrame(bb.Min, bb.Max, ImGui::GetColorU32(ImVec4(0.5, 0.5, 0.5, 0.0)), true, style.FrameRounding);
859859
//ImRect bb2(pos, ImVec2(pos.x + ImGui::GetWindowSize().x * progress, pos.y + height));
860860
//ImGui::RenderFrame(bb2.Min, bb2.Max, ImGui::GetColorU32(progressColor), true, style.FrameRounding);
861-
for (int j = 0; j < column_max && j < table.values[i].size(); ++j)
861+
for (int j = 0; j < table.columns.size() && j < table.values[i].size(); ++j)
862862
{
863-
ImGui::SetCursorPos(ImVec2(table.columns[j].offset + table.column_margin + style.ItemInnerSpacing.x, base));
863+
ImGui::SetCursorPos(ImVec2(table.columns[j].offset + style.ItemInnerSpacing.x, base));
864864
ImVec2 winpos = ImGui::GetWindowPos();
865865
ImVec2 pos = ImGui::GetCursorPos();
866866
pos = window->DC.CursorPos;

0 commit comments

Comments
 (0)