summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/handlers/html/html_object.c7
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,