diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-02-17 09:04:41 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-02-17 09:06:58 +0000 |
commit | e1a3e0427f7166bf0e1c85520080bb75c6ee24c1 (patch) | |
tree | 9a38b0a9118bdd10ac0998ecebff6205bede9c58 | |
parent | 07242c7415bcfb35d3f9f150317b30138664eb2f (diff) | |
download | netsurf-e1a3e0427f7166bf0e1c85520080bb75c6ee24c1.tar.gz netsurf-e1a3e0427f7166bf0e1c85520080bb75c6ee24c1.tar.bz2 |
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.
-rw-r--r-- | content/handlers/html/html_object.c | 6 |
1 files 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); } } |