document.body.offsetWidth is zero

Hi,

Question is how to force document.body.offsetWidth to be value different from 0.

I am using component of third part on plain html page which is placed to tabbar. This component is waitting for document.body.offsetWidth different to 0.
It is working first time but second time there is empty place (no reloading is done).

I am loading setting from file:
this.loadTabbarXML = function(xmlFileName) {
this.tabbar.clearAll();
this.tabbar.loadXML(xmlFileName, function() { Layout.translateTabbar(); });
}

<?xml version="1.0" encoding="utf-8" ?> Object_Search.ShortTranslation Object_Results.ShortTranslation

These are used for initialization:
this.tabbar = this.layout.cells(“a”).attachTabbar();
this.tabbar.setImagePath("…/…/…/codebase/imgs/");
this.tabbar.enableForceHiding(true);

Setting of active tab:
this.tabbar.setTabActive(newTabId);

Thanks

One more thing -> first time it does nothing, component is shown after I move mouse out of broser (I am using IE7).

It is working now. Problem was with debug mode in MS Visual studio. After killing it it starts work.