A
A
Alexander2016-12-01 16:31:03
JavaScript
Alexander, 2016-12-01 16:31:03

Why doesn't Chrome calculate window width correctly?

$(window).resize(function () {
    console.log($(window).width());
});

74d3dcd1e20e4283b24109123a5529d5.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2016-12-01
@Ankhena

Open Photoshop and find an element with a width equal to the difference between the two values.
And you will know that it is a scrollbar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question