summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 253a492ad..ef29aa80b 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -997,8 +997,7 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void
/* reflow textarea preserving width and height */
width = textarea->width;
height = textarea->height;
- layout_block(textarea, (unsigned int)textarea->parent->width,
- textarea, 0, 0);
+ layout_block(textarea, textarea, 0, 0);
textarea->width = width;
textarea->height = height;
}