Merge pull request #4164 from IgorA100/patch-732743

Fix: Scaling of control buttons (Zoom, Edit, etc.) located on the Stream depending on the width of the Stream on Event page witch use video.js
pull/4165/head
Isaac Connor 2024-10-02 09:30:58 -04:00 committed by GitHub
commit f56d001839
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1284,7 +1284,7 @@ var doubleTouch = function(e) {
};
function setButtonSizeOnStream() {
const elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"]');
const elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"], [id = "videoobj"]');
Array.prototype.forEach.call(elStream, (el) => {
//It is necessary to calculate the size for each Stream, because on the Montage page they can be of different sizes.
const w = el.offsetWidth;