Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

measure getDimensions bug in Chrome #1092

karolis-k opened this Issue Jan 18, 2012 · 4 comments


None yet
4 participants


I was implementing spinner and it wasn't positioning correctly in chrome ('left' and 'top' styles not set).

I did some research and there is a bug Measure's 'getDimensions' function:
var parent = this.getParent('body');

should be:
var parent = this.getParent('BODY');

Please let me know if you need any more info.


arian commented Jan 18, 2012

Are you sure, BODY or body should make a difference. Could you create a http://jsfiddle.net demonstrating the problem with the relevant code?


realityking commented Jan 18, 2012

Changing this to BODY may break sites which use XHTML since XML is case sensitive.

Right, the problem is with XML stuff. The webpage I'm working on has some other JavaScript frameworks (which I cannot control) and one of them executes this script (I don't know why code highlighting didn't work for me):

window.XMLDocument.prototype.\__defineGetter__("xml", function () {
    return toXml(this);

function toXml (k) {
    if (typeof XMLSerializer != "undefined") {
        return new XMLSerializer().serializeToString(k);
    if (k.xml) {
        return k.xml;
    return "";

And I'm not really sure what it's trying to achieve:).

Maybe we can just assign that parent variable in some other way?


SergioCrisostomo commented May 2, 2014

This is a old issue and too localized. I close it now.
@karolis-k feel free to post again if you feel this should get attention again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment