Total rows of text edit was calculated wrong, fixed issue #842
This commit is contained in:
parent
30d3658110
commit
3a0f665c90
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ void TextEdit::_update_scrollbars() {
|
||||||
|
|
||||||
int hscroll_rows = ((hmin.height-1)/get_row_height())+1;
|
int hscroll_rows = ((hmin.height-1)/get_row_height())+1;
|
||||||
int visible_rows = get_visible_rows();
|
int visible_rows = get_visible_rows();
|
||||||
int total_rows = text.size() * cache.line_spacing;
|
int total_rows = text.size();
|
||||||
|
|
||||||
int vscroll_pixels = v_scroll->get_combined_minimum_size().width;
|
int vscroll_pixels = v_scroll->get_combined_minimum_size().width;
|
||||||
int visible_width = size.width - cache.style_normal->get_minimum_size().width;
|
int visible_width = size.width - cache.style_normal->get_minimum_size().width;
|
||||||
|
|
Loading…
Reference in a new issue