mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
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.
This commit is contained in:
parent
51f81e1c88
commit
ed16df1807
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user