I have installed the tab iframe zimlet (https://wiki.zimbra.com/wiki/ZCS_6.0:Zi ... Tab_iFrame) which works well.
However, I would like the iframe to take the full page width available, that is, without the overview area and calendar on the left. I think I must add something to the zimlet .js file but so far I have not figured out what.
I found this below but it does not work, only blocks the calendar from display although the space it would take is still there.
It is pasted in
Code: Select all
com_zimbra_elgg_tabiframe_HandlerObject.prototype.appActive =
function(appName, active)
Code: Select all
if (active)
{
//In the ownCloud Zimbra tab hide the left menu bar that is displayed by default in Zimbra, also hide the mini calendar
document.getElementById('z_sash').style.display = "none";
//Users that click the ownCloud tab directly after logging in, will still be served with the calendar, as it is normal
//it takes some time to be displayed, so if that occurs, try to remove the calender again after 10 seconds.
try {
var cal = document.getElementsByClassName("DwtCalendar");
cal[0].style.display = "none";
} catch (err) { setTimeout(function(){var cal = document.getElementsByClassName("DwtCalendar"); if(cal[0]){cal[0].style.display = "none";}}, 10000); }
}
else
{
document.getElementById('z_sash').style.display = "block";
try {
var cal = document.getElementsByClassName("DwtCalendar");
cal[0].style.display = "block";
} catch (err) { }
}
Tom