can you move this line into the `//window scrolling, absolute positioning` part of the conditional, since the tableHeight value is only used there?