Recalculate canvas height when entering/leaving fullscreen