diff --git a/src/hello_imgui/impl/hello_imgui_widgets.cpp b/src/hello_imgui/impl/hello_imgui_widgets.cpp index d49c1472..916fbbcf 100644 --- a/src/hello_imgui/impl/hello_imgui_widgets.cpp +++ b/src/hello_imgui/impl/hello_imgui_widgets.cpp @@ -174,6 +174,8 @@ namespace HelloImGui textInput->SizeEm = newSize; else textInput->SizeEm.x = newSize.x; + if (textInput->SizeEm.x < 1.f) + textInput->SizeEm.x = 1.f; if (!labelIsHidden) {