Skip to content

Commit 9cc43d7

Browse files
committed
fix (mvTable): indent property is supported on tables
1 parent 3be89fd commit 9cc43d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mvTables.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ void mvTable::draw(ImDrawList* drawlist, float x, float y)
153153
if (all_hidden)
154154
return;
155155

156+
// set indent
157+
if (config.indent > 0.0f)
158+
ImGui::Indent(config.indent);
159+
156160
// push font if a font object is attached
157161
if (font)
158162
{
@@ -407,6 +411,9 @@ void mvTable::draw(ImDrawList* drawlist, float x, float y)
407411
if (font)
408412
ImGui::PopFont();
409413

414+
if (config.indent > 0.0f)
415+
ImGui::Unindent(config.indent);
416+
410417
// handle popping themes
411418
cleanup_local_theming(this);
412419

0 commit comments

Comments
 (0)