call resizeCanvas whenever setSubHeaderVisibility is called