mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Corrected issue with DEFAULT_TEXT_SIZE
This commit is contained in:
@ -1144,7 +1144,7 @@ RAYGUIDEF int GuiComboBox(Rectangle bounds, const char **text, int count, int ac
|
||||
else if (active > count - 1) active = count - 1;
|
||||
|
||||
int textWidth = GuiTextWidth(text[active]);
|
||||
int textHeight = GuiGetStyle(COMBOBOX, TEXT_SIZE);
|
||||
int textHeight = GuiGetStyle(DEFAULT, TEXT_SIZE);
|
||||
|
||||
if (bounds.width < textWidth) bounds.width = textWidth;
|
||||
if (bounds.height < textHeight) bounds.height = textHeight;
|
||||
|
||||
Reference in New Issue
Block a user