Dynamically resize canvas height.