1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How does this code calculate the "left" attribute?

Discussion in 'XenForo Questions and Support' started by Nasr, Dec 25, 2010.

  1. Nasr

    Nasr Well-Known Member

    var ctrlOffset = $(e.target).coords(),
                    overlayOffset = this.overlay.getOverlay().coords();
                    left: ctrlOffset.left + ctrlOffset.width - overlayOffset.width,
                    top: ctrlOffset.top + ctrlOffset.height + 5
    I found this code in inline_mod.js. I think this deals with the inline mod overlay being positioned when the checkbox is clicked. I'm getting a "left: 1070.5px" result where as I just wante to get a 500px instead. I'm not sure how this calculates things. Looking for some help if possible.

    I need to edit this because I have changed my forums to RTL right now until full RTL support is officially provided.

Share This Page