:lipstick: Move logic into measureGutterIfNeeded
Add specs for toggling the gutter when the editor is hidden