Fix iframe unwanted horizontal scrollbar.
This commit is contained in:
parent
8e0613622f
commit
74236028ac
@ -97,6 +97,8 @@ window.initConverse = async function initConverse ({
|
|||||||
const body = document.querySelector('body')
|
const body = document.querySelector('body')
|
||||||
if (body) {
|
if (body) {
|
||||||
body.classList.add('livechat-iframe')
|
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user