Z
Z
Zvezdocheteg2017-01-27 17:27:19
JavaScript
Zvezdocheteg, 2017-01-27 17:27:19

Different page heights with dynamic content in chrome and edge, who faced and solved?

Hello.
There is such a situation and a problem, a page with dynamic content, a fixed banner on it, when scrolling the page everything is fine, when the end stop point of the banner comes in edge and firefox it is different, the difference
is somewhere around ~ 60 px.

The break point was calculated using different methods: offsetTop, content height, window.height - footer, etc.

During the investigation, it turned out that different calculations in the height of the document on different browsers.
Here are the latest height data:
chorme - 14603
edge - 14708

There are suggestions that there are problems in the padding calculations.
In general, who came across, can you tell me the solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Zhivagin, 2017-01-27
@Krasnodar_etc

Edge loves to write something for the programmer. I had a slightly different situation and was solved stupidly by comparing each element with my own code

R
RTW, 2017-01-27
@RTW

Without an example, nothing is clear, well, you can play around with box-sizing.
Or try including something like Normalize.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question