Always set image width to 100%. it should fill it's div and we will set the width of the div.

This commit is contained in:
Isaac Connor 2021-08-19 18:57:00 -04:00
parent 68a7635d9b
commit 4a5bc88882
1 changed files with 7 additions and 1 deletions

View File

@ -231,8 +231,14 @@ foreach ( $monitors as $monitor ) {
> >
<?php <?php
$monitor_options = $options; $monitor_options = $options;
$monitor_options['width'] = $monitor_options['width'].'px'; $monitor_options['width'] = '100%';
if ( 0 ) {
if ($monitor_options['width'] > 0)
$monitor_options['width'] = $monitor_options['width'].'px';
if ($monitor_options['height'] > 0)
$monitor_options['height'] = $monitor_options['height']?$monitor_options['height'].'px' : null; $monitor_options['height'] = $monitor_options['height']?$monitor_options['height'].'px' : null;
} # end if
$monitor_options['connkey'] = $monitor->connKey(); $monitor_options['connkey'] = $monitor->connKey();
#ZM\Warning('Options: ' . print_r($monitor_options,true)); #ZM\Warning('Options: ' . print_r($monitor_options,true));