Browse Source

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.
Bronson Holden 1 year ago
parent
commit
ed16df1807
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/gui/text_edit.cpp

+ 1 - 1
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 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) {
 	if (draw_minimap) {
 		total_width += minimap_width;
 		total_width += minimap_width;