From a38d3e5d61dbdd552b923be99621b946a71380b5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 12 Jan 2024 12:18:05 +0100 Subject: [PATCH] Fix typo. --- scene/gui/text_edit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 476298068..16112b8b7 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1001,11 +1001,11 @@ void TextEdit::_notification(int p_what) { int top_limit_y = 0; int bottom_limit_y = get_size().height; if (readonly) { - top_limit_y += cache.style_readonly->get_margin(MARGIN_BOTTOM); + top_limit_y += cache.style_readonly->get_margin(MARGIN_TOP); bottom_limit_y -= cache.style_readonly->get_margin(MARGIN_BOTTOM); } else { top_limit_y += cache.style_normal->get_margin(MARGIN_TOP); - bottom_limit_y -= cache.style_normal->get_margin(MARGIN_TOP); + bottom_limit_y -= cache.style_normal->get_margin(MARGIN_BOTTOM); } // Draw main text.