diff --git a/src/raygui.h b/src/raygui.h index d9715fd..e88c52b 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -3876,7 +3876,7 @@ static Rectangle GetTextBounds(int control, Rectangle bounds) // Consider TEXT_PADDING properly, depends on control type and TEXT_ALIGNMENT switch (control) { - case COMBOBOX: bounds.width -= (GuiGetStyle(control, COMBO_BUTTON_WIDTH) + GuiGetStyle(control, COMBO_BUTTON_SPACING)); break; + case COMBOBOX: textBounds.width -= (GuiGetStyle(control, COMBO_BUTTON_WIDTH) + GuiGetStyle(control, COMBO_BUTTON_SPACING)); break; //case VALUEBOX: break; // NOTE: ValueBox text value always centered, text padding applies to label default: {