summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorBronson Holden <bronson@bronsonholden.com>2023-10-13 10:49:58 -0700
committerBronson Holden <bronson@bronsonholden.com>2023-10-13 10:50:01 -0700
commited16df1807ec6b0ba4d0ade99a101ebedcf244dd (patch)
tree997db79d16c1108a3f811e70a469f1619f69ba9f /scene/gui/text_edit.cpp
parent51f81e1c88499f04d2ebdcc0be0b34e73f5e90eb (diff)
downloadredot-engine-ed16df1807ec6b0ba4d0ade99a101ebedcf244dd.tar.gz
Remove vertical scrollbar padding from line width calc
Visibility of the vertical scrollbar is already accounted for in `_update_wrap_at_column` which in turn affects max line width of the text area.
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 073f164bdd..93905b8b39 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -7340,7 +7340,7 @@ void TextEdit::_update_scrollbars() {
}
int visible_width = size.width - theme_cache.style_normal->get_minimum_size().width;
- int total_width = (draw_placeholder ? placeholder_max_width : text.get_max_width()) + vmin.x + gutters_width + gutter_padding;
+ int total_width = (draw_placeholder ? placeholder_max_width : text.get_max_width()) + gutters_width + gutter_padding;
if (draw_minimap) {
total_width += minimap_width;