Handle auto in width

pull/4202/head
Isaac Connor 2024-12-17 15:22:05 -05:00
parent 4f01627e33
commit 9fd8882f39
1 changed files with 1 additions and 1 deletions

View File

@ -2036,7 +2036,7 @@ function getStreamHTML($monitor, $options = array()) {
#$options['width'] = $monitor->ViewWidth().'px';
#$options['height'] = $monitor->ViewHeight().'px';
}
} else {
} else if ($options['width'] != 'auto') {
#ZM\Warning("Have width ".$options['width']);
if ( preg_match('/^(\d+)px$/', $options['width'], $matches) ) {
$scale = intval(100*$matches[1]/$monitor->ViewWidth());