mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
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:
parent
07242c7415
commit
e1a3e0427f
@ -166,7 +166,7 @@ html_object_callback(hlcache_handle *object,
|
|||||||
c->base.status == CONTENT_STATUS_DONE)
|
c->base.status == CONTENT_STATUS_DONE)
|
||||||
content__reformat(&c->base, false,
|
content__reformat(&c->base, false,
|
||||||
c->base.available_width,
|
c->base.available_width,
|
||||||
c->base.height);
|
c->base.available_height);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -459,7 +459,7 @@ html_object_callback(hlcache_handle *object,
|
|||||||
event->type == CONTENT_MSG_ERRORCODE)) {
|
event->type == CONTENT_MSG_ERRORCODE)) {
|
||||||
/* all objects have arrived */
|
/* all objects have arrived */
|
||||||
content__reformat(&c->base, false, c->base.available_width,
|
content__reformat(&c->base, false, c->base.available_width,
|
||||||
c->base.height);
|
c->base.available_height);
|
||||||
content_set_done(&c->base);
|
content_set_done(&c->base);
|
||||||
} else if (nsoption_bool(incremental_reflow) &&
|
} else if (nsoption_bool(incremental_reflow) &&
|
||||||
event->type == CONTENT_MSG_DONE &&
|
event->type == CONTENT_MSG_DONE &&
|
||||||
@ -484,7 +484,7 @@ html_object_callback(hlcache_handle *object,
|
|||||||
content__reformat(&c->base,
|
content__reformat(&c->base,
|
||||||
false,
|
false,
|
||||||
c->base.available_width,
|
c->base.available_width,
|
||||||
c->base.height);
|
c->base.available_height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user