I was able to cause the same error by removing the zimlets, restarting mailboxd, redeploying the zimlets, first samba, second posix then restarting mailboxd again.
with ?dev=1 the error now reads
elements is undefined
The function that elements is in follows:
The relevant line is: comp = elements[cid];
Code:
function(components) {
for (var i = 0; i < components.length; i++) {
var cid = components[i];
// don't resize logo image (it will tile) or reposition it (centered via style)
if (cid == ZaAppViewMgr.C_BANNER) continue;
//DBG.println(AjxDebug.DBG3, "fitting to container: " + cid);
var cont = this._containers[cid];
if (cont) {
var contBds = Dwt.getBounds(cont);
var comp = this._components[cid];
if (
cid == ZaAppViewMgr.C_APP_CONTENT ||
cid == ZaAppViewMgr.C_TOOLBAR_TOP ||
cid == ZaAppViewMgr.C_TOOLBAR_BOTTOM ) {
// make sure we fit the component that's current
var elements = this._views[this._currentView];
comp = elements[cid];
}
if (comp && (comp.getZIndex() != Dwt.Z_HIDDEN)) {
var y = contBds.y ;
var h = contBds.height ;
if (AjxEnv.isIE && (!this._isAdvancedSearchBuilderDisplayed)) {
//bug 22173: IE hacking. Seems that the banner image size screw the height in IE. Maybe a small banner image on IE is the final solution?
//Also the advanced Search Builder expand/collapse will also affect the display behavior. WEIRD!
if ( cid == ZaAppViewMgr.C_TREE ) {
y += 8 ;
h -= 5 ;
}else if ( cid == ZaAppViewMgr.C_CURRENT_APP ) {
y += 5 ;
}
}
try {
comp.setBounds(contBds.x, y, contBds.width, h);
} catch (ex) {
ZaApp.getInstance().getCurrentController()._handleException(ex, "ZaAppViewMgr.prototype._stickToGrid", nul, false);
}
this._contBounds[cid] = contBds;
//call the components resizeListener to rearrange the component layout
if (comp._resizeListener) {
comp._resizeListener();
}
}
}
}
//this._debugShowMetrics(components);
}