Fixed window resize bugs, and nested scrollable divs handling