Don't use vscroll when fit to content height in TextEdit
This commit is contained in:
parent
11d3768132
commit
d9b0561601
@ -7491,7 +7491,7 @@ void TextEdit::_update_scrollbars() {
|
|||||||
|
|
||||||
updating_scrolls = true;
|
updating_scrolls = true;
|
||||||
|
|
||||||
if (total_rows > visible_rows) {
|
if (!fit_content_height && total_rows > visible_rows) {
|
||||||
v_scroll->show();
|
v_scroll->show();
|
||||||
v_scroll->set_max(total_rows + _get_visible_lines_offset());
|
v_scroll->set_max(total_rows + _get_visible_lines_offset());
|
||||||
v_scroll->set_page(visible_rows + _get_visible_lines_offset());
|
v_scroll->set_page(visible_rows + _get_visible_lines_offset());
|
||||||
|
Loading…
Reference in New Issue
Block a user