Total rows of text edit was calculated wrong, fixed issue #842

This commit is contained in:
marynate 2015-01-13 17:16:56 +08:00
parent 30d3658110
commit 3a0f665c90

View file

@ -298,7 +298,7 @@ void TextEdit::_update_scrollbars() {
int hscroll_rows = ((hmin.height-1)/get_row_height())+1;
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 visible_width = size.width - cache.style_normal->get_minimum_size().width;