Fix setting frame width when changing from fixed width to scaled

pull/2545/head
Isaac Connor 2019-03-04 13:43:03 -05:00
parent 96e29c0299
commit 7cee8356bd
1 changed files with 6 additions and 5 deletions

View File

@ -318,12 +318,13 @@ function changeScale() {
console.log("Error finding frame for " + monitor.id );
continue;
}
if ( width ) {
monitor_frame.css('width', width);
}
if ( height ) {
monitor_frame.css('height', height+'px');
if ( newWidth ) {
monitor_frame.css('width', newWidth);
}
// We don't set the frame height because it has the status bar as well
//if ( height ) {
////monitor_frame.css('height', height+'px');
//}
/*Stream could be an applet so can't use moo tools*/
var streamImg = $j('#liveStream'+monitor.id )[0];
if ( streamImg ) {