views:

30

answers:

2

I am using resize event, but when scroller appear - it change window size, but event is not called.

A: 

You could keep tabs on the client width - it will reduce by about 20px when the scrollbar appears.

Sohnee
A: 

You have to check if the content height is higher than the inner height of the browser. Unfortunately, there is no event listener for scrollbar being added...

peirix