Skip to content

Commit

Permalink
Fix TextEdit HScroll hiding after wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbdev committed May 27, 2024
1 parent be56cab commit 66a8ee7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ void TextEdit::Text::invalidate_all_lines() {
}
tab_size_dirty = false;

max_width = -1;
_calculate_max_line_width();
}

Expand Down Expand Up @@ -404,10 +405,12 @@ void TextEdit::Text::remove_range(int p_from_line, int p_to_line) {
text.resize(text.size() - diff);

if (dirty_height) {
line_height = -1;
_calculate_line_height();
}

if (dirty_width) {
max_width = -1;
_calculate_max_line_width();
}
}
Expand Down

0 comments on commit 66a8ee7

Please sign in to comment.