J
J
JackShcherbakov2018-01-21 00:28:53
JavaScript
JackShcherbakov, 2018-01-21 00:28:53

Why are the coordinates displayed with fractions in the Yandex browser?

Hello! I am writing a website builder. Already wrote about 600 lines of code. The code was constantly checked in Yandex and Chrome. But suddenly fractions appeared in Yandex! You can see it on the screenshot - priscree.ru/img/d30d07c793ca0a.jpg
What's the matter? I can't post the code. What could be the problem? There are no errors in the console. Elements that receive coordinates are written to exactly elem.style.top, not offsetTop.
If you write exactly offsetTop, then everything works. But still the question remains open.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question