when selecting auto, we need to remove the width & height css key
This commit is contained in:
parent
c934295bf9
commit
b85f74bb99
|
@ -248,15 +248,13 @@ function changeSize() {
|
||||||
var monitor = monitors[x];
|
var monitor = monitors[x];
|
||||||
|
|
||||||
// Scale the frame
|
// Scale the frame
|
||||||
monitor_frame = $j('#monitorFrame'+monitor.id);
|
monitor_frame = $j('#monitorFrame'+monitor.id);
|
||||||
if ( ! monitor_frame ) {
|
if ( ! monitor_frame ) {
|
||||||
console.log("Error finding frame for " + monitor.id );
|
console.log("Error finding frame for " + monitor.id );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( width )
|
monitor_frame.css('width',width?width+'px':'');
|
||||||
monitor_frame.css('width',width+'px');
|
monitor_frame.css('height',height?height+'px':'');
|
||||||
if ( height )
|
|
||||||
monitor_frame.css('height',height+'px');
|
|
||||||
/*Stream could be an applet so can't use moo tools*/
|
/*Stream could be an applet so can't use moo tools*/
|
||||||
var streamImg = $( 'liveStream'+monitor.id );
|
var streamImg = $( 'liveStream'+monitor.id );
|
||||||
if ( streamImg ) {
|
if ( streamImg ) {
|
||||||
|
|
Loading…
Reference in New Issue