Skip to content

Necessary changes made to RedWarn Preferences and RC patrol

Chlod Alejandro requested to merge patch-3 into master

I have changed all the instances of document.body.offsetWidth and height with window.innerWidth. The reason is that innerWidth and innerHeight is one of the only ways to get the dimensions of the window, while offsetWidth returns the width and height of an element with the border. This is not always the same; while on Vector skin it is for the most part the same, on Timeless and Monobook that is not the case. innerWidth and innerHeight gets the dimensions of the inner content of the window.

Before:

image

After:

image

Merge request reports