[wikka-community] Submenu Position in WikkaEdit

Alexander Rust agrust
Fri Jun 19 17:29:14 GMT 2009


Hi Daria,

thanks for your response. I loaded the version from the homepage and never do anything with nightly builds. Sorry.

To check this I downloaded wikkawiki again from http://wikkawiki.org/HomePage and checked the wikkaedit.js. at line 800 you can the same code as in the previous mail.

// ===== return the absolute coordinate of the specified object =====
WikkaEdit.prototype.getObjectCoords = function(obj) {
    // offsetLeft & offsetTop give coordinate of the parent object
    var x=0, y=0;
    do {
        x += obj.offsetLeft;
        y += obj.offsetTop;
    } while ((obj = obj.offsetParent) != null);
    return {x:x, y:y};
}

Hope this will help.



Alex





From: dartar at wikkawiki.org
To: community at wikkawiki.org
Date: Fri, 19 Jun 2009 13:27:40 +0100
Subject: Re: [wikka-community] Submenu Position in WikkaEdit

Alex,
looking at this and previous comments, I suspect you are using unstable builds from trunk, can you please confirm if this is the case?Nightly builds are likely to be unstable and have temporary issues, they should be not used in production environments.
See http://wikkawiki.org/WikkaUnstable
Dario

On 19 Jun 2009, at 13:20, Alexander Rust wrote:if i click on this littel downarrows a submenu is shown with colored text, monospace, etc.

but this pops up on the wrong position.

if i change the code in wikkaedit.js row 800ff to

// ===== return the absolute coordinate of the specified object =====
WikkaEdit.prototype.getObjectCoords = function(obj) {
    // offsetLeft & offsetTop give coordinate of the parent object
    var x=0, y=0;
    //do {                                                       <---------------------------
        x += obj.offsetLeft;
        y += obj.offsetTop;
    //} while ((obj = obj.offsetParent) != null);      <--------------------------
    return {x:x, y:y};
}

the position is right. but i'm not really familiar with JS ;)

what should i do?

thanks
Alex

Surfen - optimiert f?r MSN. Hol Dir die neue Version des Internet Explorers - kostenlos! _______________________________________________
WikkaWiki Community mailing list
community at wikkawiki.org
http://mail.wikkawiki.org/mailman/listinfo/community_wikkawiki.org

xLDen>de GoogleCHoffe, das wird helfen. Alex
_________________________________________________________________
http://redirect.gimas.net/?n=M0906xWLHM2
Unbegrenzter Speicher bei Windows Live Hotmail!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.wikkawiki.org/pipermail/community_wikkawiki.org/attachments/20090619/9cca22c4/attachment.html>



More information about the community mailing list