summaryrefslogtreecommitdiff
path: root/desktop/textinput.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-12-02 16:10:13 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-12-02 16:10:13 +0000
commite2a7600e9a2fe94a00e653b0f484d941129c3ad5 (patch)
treedc7cc72ae5b9cda5d7a863f2974010314401796e /desktop/textinput.c
parent6a7e602bbdb80e47929d22a9e3ab802318e4728e (diff)
downloadnetsurf-e2a7600e9a2fe94a00e653b0f484d941129c3ad5.tar.gz
netsurf-e2a7600e9a2fe94a00e653b0f484d941129c3ad5.tar.bz2
Big wodge of internal browser window scroll fixes, or "rationalisation of browser window scrollbar handling".
svn path=/trunk/netsurf/; revision=13221
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r--desktop/textinput.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c
index 50ea16cc8..63e17debe 100644
--- a/desktop/textinput.c
+++ b/desktop/textinput.c
@@ -76,15 +76,8 @@ void browser_window_place_caret(struct browser_window *bw,
root_bw = browser_window_get_root(bw);
browser_window_get_position(bw, true, &pos_x, &pos_y);
- if (bw->browser_window_type == BROWSER_WINDOW_FRAME) {
- x = (x - scrollbar_get_offset(bw->scroll_x)) * bw->scale;
- y = (y - scrollbar_get_offset(bw->scroll_y)) * bw->scale;
- x += pos_x;
- y += pos_y;
- } else {
- x = x * bw->scale + pos_x;
- y = y * bw->scale + pos_y;
- }
+ x = x * bw->scale + pos_x;
+ y = y * bw->scale + pos_y;
gui_window_place_caret(root_bw->window, x, y, height * bw->scale);
bw->caret_callback = caret_cb;