Skip to content

Commit

Permalink
Height will always be true to do px being appended. Leave it as numbe…
Browse files Browse the repository at this point in the history
…r until setting height.
  • Loading branch information
Isaac Connor committed Sep 22, 2024
1 parent b82fb41 commit 6a672c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/skins/classic/views/js/montage.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ function setRatioForMonitor(objStream, id=null) {
ratio = (value == 'auto') ? averageMonitorsRatio : partsRatio[0]/partsRatio[1];
}

const height = (currentMonitor.width / currentMonitor.height > 1) ? (objStream.clientWidth / ratio + 'px') /* landscape */ : (objStream.clientWidth * ratio + 'px');
const height = (currentMonitor.width / currentMonitor.height > 1) ? (objStream.clientWidth / ratio) /* landscape */ : (objStream.clientWidth * ratio);
if (!height) {
console.log("0 height from ", currentMonitor.width, currentMonitor.height, (currentMonitor.width / currentMonitor.height > 1), objStream.clientWidth / ratio);
} else {
objStream.style['height'] = height;
objStream.parentNode.style['height'] = height;
objStream.style['height'] = height + 'px';
objStream.parentNode.style['height'] = height + 'px';
}
}

Expand Down

0 comments on commit 6a672c4

Please sign in to comment.