Open arekm opened 9 years ago
And google chrome team information about this: http://blog.chromium.org/2014/10/chrome-39-beta-js-generators-animation.html
Other updates in this release
[...]
Scroll offsets (scrollTop, scrollLeft) now return high-precision fractional values in preparation for high-DPI support
and I guess that applies to scrollX and scrollY, too.
In kindeditor-min.js there is code:
sometimes "b" in "this.div.css("top", b)" ends up being non integer (for example I had values like 12.799999999...5).
If browser (google chrome) gets non-integer there it simply ignores it and "top" stays at 0px (looks like browsers do not like putting floats into attributes like top - it basically ignores it)
That float value is feed from autoPos: function
so for example we have:
o == false, A == 537, P == false, e.x == 0, e.y == 955.2 return this.pos(x, y) y - gets values like 12.799999999...5
Seems that someone tried to avoid such problem by using R() (which is round()) earlier but forgot to do the same for quirk case.
The fix could be:
I got hit by this issue on forum.banggood.com (which uses kindeditor) when using google chrome with 125% zoom level set. 100% level is fine since it never causes non-integer scrollPos.Y.