Added stored size reset in case if the element is invisible