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:
parent
68a7635d9b
commit
4a5bc88882
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue