From 8197be08d8ed859e12d9e7cb27a46c1feb6bd5b7 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 3 Sep 2021 00:44:11 +0200 Subject: [PATCH] REVIEWED: GuiTextBox() #106 --- src/raygui.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/raygui.h b/src/raygui.h index ef15344..6a07a3e 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1931,6 +1931,8 @@ bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) 4, (float)GuiGetStyle(DEFAULT, TEXT_SIZE)*2 }; + + if (cursor.height > bounds.height) cursor.height = bounds.height - GuiGetStyle(TEXTBOX, BORDER_WIDTH)*2; // Update control //--------------------------------------------------------------------