Make the notebook and some of its pages expand properly on window resize