Menu

#1 Wrong y-value in div

open
nobody
None
5
2006-01-18
2006-01-18
Anonymous
No

In htmlRender_div.as a line was missing

for (var w=0;w<extracted.length;w++){
if (extracted[w].indexOf("top")!=-1){
var tempa=extracted[w].split(':');
var tempb=tempa[1].split('px'); <--- THIS LINE
this._y=Number(tempb[0]);
trace("Y: "+this._y);
}
else if (extracted[w].indexOf("left")!=-1){
var tempa=extracted[w].split(':');
var tempb=tempa[1].split('px');
this._x=Number(tempb[0]);
trace("X: "+this._x);
}
else if (extracted[w].indexOf("visibility")!=-1){
var tempa=extracted[w].split(':');
//set visibility status
if (tempa[1].toLowerCase().indexOf("hidden")!=-1){
this._visible=false;
}
}
}

It works better with this line :-)
/P

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.