     @showHighlight()
 
   resetBackground: ->
-    $('.line').css('background-color', '')
-              .css('border-top','')
+    $('.line').css('border-top','')
               .css('border-bottom','')
               .css('margin-bottom','')
               .css('margin-top','')
+    $('.line').each (index, line) ->
+      if $(line).attr('style')?.indexOf('background') isnt -1
+        top = $(line).css('top')
+        $(line).attr 'style', "position: absolute; top: #{top};" if top?
 
   makeLineStyleAttr: ->
     styleAttr = ''

        if selection = @editorView.editor.getSelection()
          if selection.isSingleScreenLine()
            if @editorView.constructor.name is "ReactEditorView"
              pos = $(lineElement).css("position")
              topPX = $(lineElement).css("top")
              styleAttr += "position: #{pos}; top: #{topPX}; width: 100%"

            $(lineElement).attr 'style', styleAttr
          else if atom.config.get('highlight-line.enableSelectionBorder')

      underlineColor: "255, 165, 0"}
    @defaultOpacity = 50

    @subscribe @editorView, 'editor:display-updated', @updateSelectedLine
    atom.workspaceView.on 'pane:item-removed', @destroy

    @updateUnderlineStyle()
