From e1a3e0427f7166bf0e1c85520080bb75c6ee24c1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 17 Feb 2019 09:04:41 +0000 Subject: HTML handler: Reformat passing viewport height when triggered by object. Previously we correctly used the viewport width, but we were using the document height instead of viewport height when an HTML child content triggered a reformat of the parent HTML document. --- content/handlers/html/html_object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/handlers/html/html_object.c b/content/handlers/html/html_object.c index 7eab46647..b56f8e468 100644 --- a/content/handlers/html/html_object.c +++ b/content/handlers/html/html_object.c @@ -166,7 +166,7 @@ html_object_callback(hlcache_handle *object, c->base.status == CONTENT_STATUS_DONE) content__reformat(&c->base, false, c->base.available_width, - c->base.height); + c->base.available_height); } break; @@ -459,7 +459,7 @@ html_object_callback(hlcache_handle *object, event->type == CONTENT_MSG_ERRORCODE)) { /* all objects have arrived */ content__reformat(&c->base, false, c->base.available_width, - c->base.height); + c->base.available_height); content_set_done(&c->base); } else if (nsoption_bool(incremental_reflow) && event->type == CONTENT_MSG_DONE && @@ -484,7 +484,7 @@ html_object_callback(hlcache_handle *object, content__reformat(&c->base, false, c->base.available_width, - c->base.height); + c->base.available_height); } } -- cgit v1.2.3