diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-06 15:37:08 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-06 15:38:33 +0100 |
commit | 0f3b27916733bb8d962a8fd9434422421d489e23 (patch) | |
tree | 50705e39efffc2e3d4204b04d5d85a2566d6dc34 /content/handlers/html/html_object.c | |
parent | b38f7cc7187a257f5fb04864ad2f44c4466c1ddc (diff) | |
download | netsurf-0f3b27916733bb8d962a8fd9434422421d489e23.tar.gz netsurf-0f3b27916733bb8d962a8fd9434422421d489e23.tar.bz2 |
HTML content handler: Handle content msg for getdims.
Diffstat (limited to 'content/handlers/html/html_object.c')
-rw-r--r-- | content/handlers/html/html_object.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/handlers/html/html_object.c b/content/handlers/html/html_object.c index b56f8e468..1dc8e645d 100644 --- a/content/handlers/html/html_object.c +++ b/content/handlers/html/html_object.c @@ -354,6 +354,13 @@ html_object_callback(hlcache_handle *object, *(event->data.jscontext) = NULL; break; + case CONTENT_MSG_GETDIMS: + *(event->data.getdims.viewport_width) = + content__get_width(&c->base); + *(event->data.getdims.viewport_height) = + content__get_height(&c->base); + break; + case CONTENT_MSG_SCROLL: if (box->scroll_x != NULL) scrollbar_set(box->scroll_x, event->data.scroll.x0, |