Fixed calculation of innerSize to take scrollbars into account