Menu

#1 Bug in Labels with other controls (fix included)

open
nobody
None
5
2007-09-29
2007-09-29
No

Hi all,
I found a bug when using euDock.Label.js. If the label is outside the bar, and over another object, the other object doesn't work.
It's due the label is set to opacity=0, but never is being hidden (using display or visibility properties), and the objects below them are back, so don't work.

Well, I'm Argentinian and not from USA. So I will stop writing, here is the new setFading function (in euDock.Label.js):

this.setFading = function(fad){
fad=Math.round(fad);
if (fad<0)
fad=0;
if (fad>100)
fad=100;

if \(fad == 0\)
\{
    this.hide\(\);
\}
else
\{
    this.show\(\);
\}

document.getElementById\(this.id\).style.opacity = \(fad/100\);
document.getElementById\(this.id\).style.filter = "alpha\(opacity="+\(fad\)+"\);";


this.object.setFading\(fad\);

};

Bye!!!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB