I'm attempting to determine if a div contains a visible vertical scrollbar
However, when comparing the scrollHeight with the clientHeight, there is always a difference of 1
if (div.scrollHeight > div.clientHeight) {
// Div has a visible scrollbar
}
Even though the div does not actually have a visible vertical scrollbar
This issue seems to only occur in Internet Explorer. Chrome, Firefox, and Opera are functioning correctly
I've created a demonstration to showcase my problem