diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-09 11:54:13 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-09 11:54:13 +0000 |
commit | 2bd0d1381721a6728b93fdafb5414e5a3e47c801 (patch) | |
tree | ecf63d9d08ed472a37a4b9ad089c0665250eca56 /desktop | |
parent | 688e1b0e4ff21b985dd2c212b640f50faa3f0124 (diff) | |
download | netsurf-2bd0d1381721a6728b93fdafb5414e5a3e47c801.tar.gz netsurf-2bd0d1381721a6728b93fdafb5414e5a3e47c801.tar.bz2 |
Take account of caret height when scrolling to show caret.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index bfa1327a2..4297da004 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -326,8 +326,8 @@ static bool textarea_scroll_visible(struct textarea *ta) /* scroll as required */ if (y < y0) ys += (y - y0); - else if (y > y1) - ys += (y - y1); + else if (y + ta->line_height > y1) + ys += (y + ta->line_height - y1); if (ys != ta->scroll_y && ta->bar_y != NULL) { /* Scrolled, set new pos. */ |