I have two divs one inside the other.
Both are explicitly set to the same height.
However the outer div has a max-width/height constraint and overflow auto.
This works as I want and the scrollbars come on when the divs are resized and the inner content dims exceed the outer divs.
Problem is that from that point reducing the size of both divs won't turn off the scrollbars.
Effectively one scrollbar is keeping the other scrollbar on.
The only work around so far has been to momentarily reduce the size of the inner div to 20px less than the outer div and then resetting it back to the matching dimensions.
Does anyone know of a solution that will stop the scrollbars staying 'on' when both inner and outer divs are the same size?
TIA Rob
demo here
JSFiddle