fix case of vidWidth. Fixes #3162
parent
9c3bf0af1d
commit
71183a6002
|
@ -630,6 +630,7 @@ function getNearEventsResponse( respObj, respText ) {
|
|||
if ( checkStreamForErrors('getNearEventsResponse', respObj) ) {
|
||||
return;
|
||||
}
|
||||
console.log(respObj);
|
||||
prevEventId = respObj.nearevents.PrevEventId;
|
||||
nextEventId = respObj.nearevents.NextEventId;
|
||||
prevEventStartTime = Date.parse(respObj.nearevents.PrevEventStartTime);
|
||||
|
@ -839,7 +840,7 @@ function getStat() {
|
|||
});
|
||||
}
|
||||
|
||||
function onStatsResize(vidwidth) {
|
||||
function onStatsResize(vidWidth) {
|
||||
if (!vidWidth) return;
|
||||
var minWidth = 300; // An arbitrary value in pixels used to hide the stats table
|
||||
var scale = $j('#scale').val();
|
||||
|
@ -848,8 +849,8 @@ function onStatsResize(vidwidth) {
|
|||
vidWidth = vidWidth * (scale/100);
|
||||
}
|
||||
|
||||
var width = $j(window).width() - vidwidth;
|
||||
//console.log("Width: " + width + " = window.width " + $j(window).width() + "- vidWidth" + vidwidth);
|
||||
var width = $j(window).width() - vidWidth;
|
||||
//console.log("Width: " + width + " = window.width " + $j(window).width() + "- vidWidth" + vidWidth);
|
||||
|
||||
// Hide the stats table if we have run out of room to show it properly
|
||||
if ( width < minWidth ) {
|
||||
|
|
Loading…
Reference in New Issue