My spreadsheets are not showing in IE (works fine with Firefox and Chrome). Any suggestions?

IE produces the following error:
-------------------Begin Message-------------------------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; (R1 1.6); .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 1.1.4322; InfoPath.2; .NET4.0E)
Timestamp: Fri, 24 Dec 2010 02:36:47 UTC
Message: Invalid argument.
Line: 4667
Char: 13
Code: 0
URI: http://example.com/sites/all/modules/sheetnode/socialcalc/socialcalc-3.js?5
Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 4
Char: 1
Code: 0
URI: http://sorry.google.com/sorry/?continue=http://images.google.com
---------------------End message------------------------

Line 4667 is
newcell.width=0;

in the following:
SocialCalc.RenderSizingRow = function(context) {

var colpane, colnum, newcell, t;
var sheetobj=context.sheetobj;

var result=document.createElement("tr");

if (context.showRCHeaders) {
newcell=document.createElement("td");
newcell.style.width=context.rownamewidth+"px";
newcell.height="1";
result.appendChild(newcell);
}

for (colpane=0; colpane for (colnum=context.colpanes[colpane].first; colnum<=context.colpanes[colpane].last; colnum++) {
newcell=document.createElement("td");
if (sheetobj.colattribs.hide[SocialCalc.rcColname(colnum)] != "yes") {
newcell.width=0;
}
else {
t = context.colwidth[colnum];
if (t) newcell.width=t;
}
newcell.height="1";
result.appendChild(newcell);
}
if (colpane newcell=document.createElement("td");
newcell.width=context.defaultpanedividerwidth;
newcell.height="1";
result.appendChild(newcell);
}
}
return result;
}

Comments

infojunkie’s picture

Component: Core » SocialCalc
Status: Active » Fixed

Thanks for the report. I fixed it in the latest SocialCalc commit on GitHub. Please get the latest code from there and let me know if it fixes the problem for you.

johnthomas00’s picture

Status: Fixed » Closed (fixed)

works, thanks