From 74236028ac96fbebd4bae307d0b5bd7f4ffc957f Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 23 Nov 2021 18:10:01 +0100 Subject: [PATCH] Fix iframe unwanted horizontal scrollbar. --- conversejs/builtin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index eb9d147d..1b9b4e4b 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -97,6 +97,8 @@ window.initConverse = async function initConverse ({ const body = document.querySelector('body') if (body) { body.classList.add('livechat-iframe') + // prevent horizontal scrollbar when in iframe. (don't know why, but does not work if done by CSS) + body.style.overflowX = 'hidden' } }