View Full Version : afterrender not fired on new tab

26 Jul 2012, 7:57 AM
The following was working for me at some point. Today, I find that the addedTab function is never called. The point here is to make some dom adjustments after the HTML is rendered. The difference today is that, before today, the new tab never the only tab. I think that this issue arises only when adding the first tab.

var newTab = docTabs.add({
title: label,
html: fullResp.documentViewHtml,
closable: true
newTab.on("afterrender", controller.addedTab);