Diego, We may have fixed this in our git version. Could you test it against our latest git?
Wim. 2011/1/26 Diego <[email protected]>: > Hello, > > I recently switched to wt-3.1.7a and I am getting this error in my > javascript console: > > "a is not defined". > > When I go to the source code, it points to this: > > Wt3_1_7a.StdLayout = function(a,t,h){var o=this;this.getId=function(){return > t};this.WT=a;this.marginH=function(b){var > c=b.parentNode,f=a.px(b,"marginLeft");f+=a.px(b,"marginRight");f+=a.px(b,"borderLeftWidth");f+=a.px(b,"borderRightWidth");f+=a.px(b,"paddingLeft");f+=a.px(b,"paddingRight");f+=a.pxself(c,"paddingLeft");f+=a.pxself(c,"paddingRight");return > f};this.marginV=function(b){var > c=a.px(b,"marginTop");c+=a.px(b,"marginBottom");c+=a.px(b,"borderTopWidth");c+=a.px(b,"borderBottomWidth"); > c+=a.px(b,"paddingTop");c+=a.px(b,"paddingBottom");return > c};this.getColumn=function(b){var > c,f,i,d=a.getElement(t).firstChild.childNodes;f=c=0;for(i=d.length;f<i;f++){var > > k=d[f];if(a.hasTag(k,"COLGROUP")){f=-1;d=k.childNodes;i=d.length}if(a.hasTag(k,"COL"))if(k.className!="Wt-vrh")if(c==b)return > k;else++c}return null};this.adjustCell=function(b,c,f){var > i=c==0;c-=a.pxself(b,"paddingTop");c-=a.pxself(b,"paddingBottom");if(c<=0)c=0;b.style.height=c+"px";if(!(b.style.verticalAlign||b.childNodes.length== > 0)){var > d=b.childNodes[0];if(c<=0)c=0;if(d.className=="Wt-hcenter"){d.style.height=c+"px";d=d.firstChild.firstChild;if(!a.hasTag(d,"TD"))d=d.firstChild;if(d.style.height!=c+"px")d.style.height=c+"px";d=d.firstChild}if(b.childNodes.length==1)c-=this.marginV(d);if(c<=0)c=0;if(!a.hasTag(d,"TABLE"))if(!i&&d.wtResize){b=d.parentNode.offsetWidth-o.marginH(d);if(f!=-1&&o.getColumn(f).style.width!=""){d.style.position="absolute";d.style.width=b+"px"}d.wtResize(d,b,c)}else > if(d.style.height!=c+"px"){d.style.height= > c+"px";if(d.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(d.firstChild,"TEXTAREA"))d.firstChild.style.height=c-a.pxself(d,"marginBottom")+"px"}}};this.adjustRow=function(b,c){var > f=[];if(b.style.height!=c+"px")b.style.height=c+"px";b=b.childNodes;var > i,d,k,g;i=0;g=-1;for(d=b.length;i<d;++i){k=b[i];k.className!="Wt-vrh"&&++g;if(k.rowSpan!=1){this.adjustCell(k,0,-1);f.push(k)}else > this.adjustCell(k,c,-1)}return f};this.adjust=function(){var > b=a.getElement(t);if(!b)return false;o.initResize&&o.initResize(a, > t,h);if(a.isHidden(b))return true;var > c=b.firstChild,f=b.parentNode;if(c.style.height!="")c.style.height="";if(!(b.dirty||c.w!=f.clientWidth||c.h!=f.clientHeight))return > true;b.dirty=null;var > i=a.pxself(f,"height");if(i==0){i=f.clientHeight;i-=a.px(f,"paddingTop");i-=a.px(f,"paddingBottom")}i-=a.px(b,"marginTop");i-=a.px(b,"marginBottom");var > d,k;if(f.children){d=0;for(k=f.children.length;d<k;++d){var > g=f.children[d];if(g!=b)i-=$(g).outerHeight()}}var > p=b=0,l,s;l=d=0;for(k=c.rows.length;d<k;d++){g= > c.rows[d];if(g.className=="Wt-hrh")i-=g.offsetHeight;else{p+=h.minheight[l];if(h.stretch[l]<=0)i-=g.offsetHeight;else > b+=h.stretch[l];++l}}i=i>p?i:p;p=[];if(b!=0&&i>0){s=i;var > q;l=d=0;for(k=c.rows.length;d<k;d++)if(c.rows[d].className!="Wt-hrh"){g=c.rows[d];if(h.stretch[l]!=0){if(h.stretch[l]!=-1){q=i*h.stretch[l]/b;q=s>q?q:s;q=Math.round(h.minheight[l]>q?h.minheight[l]:q);s-=q}else > > q=g.offsetHeight;a.addAll(p,this.adjustRow(g,q))}++l}}d=0;for(k=p.length;d<k;++d){g=p[d];this.adjustCell(g,g.offsetHeight, > > v)}c.w=f.clientWidth;c.h=f.clientHeight;if(c.style.tableLayout!="fixed")return > true;b=0;l=c.childNodes;f=0;for(i=l.length;f<i;f++){var > v=l[f],A,z;if(a.hasTag(v,"COLGROUP")){f=-1;l=v.childNodes;i=l.length}if(a.hasTag(v,"COL")){if(a.pctself(v,"width")==0){d=p=0;for(k=c.rows.length;d<k;d++){g=c.rows[d];s=g.childNodes;A=q=0;for(z=s.length;A<z;A++){g=s[A];if(g.colSpan==1&&q==b&&g.childNodes.length==1){g=g.firstChild;g=g.offsetWidth+o.marginH(g);p=Math.max(p,g);break}q+=g.colSpan;if(q>b)break}}if(p>0&& > a.pxself(v,"width")!=p)v.style.width=p+"px"}++b}}return > true};this.contains=function(b){var > c=a.getElement(t);b=a.getElement(b.getId());return > c&&b?a.contains(c,b):false};this.adjust()}; > > > Does this ring any bell? > > Thanks, > > Diego Cantor > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
