diff --git a/src/resources/js/meet/app.js b/src/resources/js/meet/app.js --- a/src/resources/js/meet/app.js +++ b/src/resources/js/meet/app.js @@ -1380,10 +1380,14 @@ return } + // Note: offsetHeight/offsetWidth return rounded values, but for proper matrix + // calculations we need more precision, therefore we use getBoundingClientRect() + let allHeight = container.offsetHeight let scrollHeight = subscribersContainer.scrollHeight - let containerWidth = publishersContainer.offsetWidth - let containerHeight = publishersContainer.offsetHeight + let bcr = publishersContainer.getBoundingClientRect() + let containerWidth = bcr.width + let containerHeight = bcr.height let limit = Math.ceil(allHeight * 0.25) // max subscribers list height // Fix subscribers list height