mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-31 11:19:18 -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;
|
else if (active > count - 1) active = count - 1;
|
||||||
|
|
||||||
int textWidth = GuiTextWidth(text[active]);
|
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.width < textWidth) bounds.width = textWidth;
|
||||||
if (bounds.height < textHeight) bounds.height = textHeight;
|
if (bounds.height < textHeight) bounds.height = textHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user