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.
This commit is contained in:
Michael Drake 2019-02-17 09:04:41 +00:00
parent 07242c7415
commit e1a3e0427f
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}