Always apply detectPixelRatio changed (if called) and use jQuery outerWidth/Height to get original height/width.