From 0f3b27916733bb8d962a8fd9434422421d489e23 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 6 May 2019 15:37:08 +0100 Subject: HTML content handler: Handle content msg for getdims. --- content/handlers/html/html_object.c | 7 +++++++ 1 file changed, 7 insertions(+) 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, -- cgit v1.2.3