Skip to content

Commit

Permalink
resizable text: min size = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed May 15, 2024
1 parent 4da45da commit 1f10d34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hello_imgui/impl/hello_imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1f10d34

Please sign in to comment.