Hi!
I’m having problems when dynamically loaded content has different heights in different tabs: during switching, tabbar gets stuck on maximum height and won’t adapt to smaller content anymore.
This is setup (called only on startup):
|
… |
Tab definitions are loaded from separate file (tabXml.php) - first problem I’ve encountered is lack of callback for loadXML function; i simply added that.waitCall(); on the end of dhtmlXTabBar.prototype._parseXML function (loadXML has function as second argument but unfotunately it is not called after XML is loaded).
And this is source of tabOnSelect callback:
function tabOnSelect(step) {
tabbar.forceLoad(step);
window.scrollTo(0,0);
}
I want to be sure that content is reloaded when user switches between tabs.
Working demo can be found at:
ira.avalon.hr/nrdb/index.php?pid=list
(Naruci = Order,Nastavak = Continue, Povratak = Back)
Problem can be seen when user gets to tab “Osobni podaci” and then gets back to “Parametriranje” - tab height isn’t reduced to fit a content.