* is smaller than the height of the screen
* divided by the number of layout rows */
- /* check if all images are initialized and find the max height/width ratio */
+ /* find the max height/width ratio */
var frames = getCameraFrames();
var maxRatio = 0;
if (!maxRatio) {
return; /* no camera frames */
}
-
+
var pageContainer = getPageContainer();
var windowWidth = $(window).width();
getPageContainer().css('width', '');
return; /* page container width already at its maximum */
}
-
+
getPageContainer().css('width', width);
}
else {
function addCameraFrameUi(cameraConfig) {
var cameraId = cameraConfig.id;
-
+
var cameraFrameDiv = $(
'<div class="camera-frame">' +
'<div class="camera-container">' +
if (this.naturalHeight) {
this._naturalHeight = this.naturalHeight;
}
-
+
if (this.initializing) {
cameraProgress.removeClass('visible');
cameraImg.removeClass('initializing');
cameraImg.css('height', '');
this.initializing = false;
-
+
updateLayout();
}