From 64d5a4f1ddb1994f280af071552a3badb2d85a09 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 1 Aug 2021 19:56:02 +0200 Subject: [PATCH] [iframes] Small step forward. Allow to scroll in iframe which is bigger than screen. --- src/document/html/iframes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/html/iframes.c b/src/document/html/iframes.c index 1ceabc09..8b13f547 100644 --- a/src/document/html/iframes.c +++ b/src/document/html/iframes.c @@ -205,7 +205,7 @@ format_iframes(struct session *ses, struct iframeset_desc *ifsd, o.box.y = iframe_desc->y; o.box.width = iframe_desc->width; - o.box.height = iframe_desc->height; + o.box.height = int_min(iframe_desc->height, ses->tab->term->height - iframe_desc->y - 1); o.framename = iframe_desc->name; doc_view = format_iframe(ses, iframe_desc, &o, j);