         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%"
+              styleAttr += "position: absolute; top: #{topPX}; width: 100%;" if topPX?
 
             $(lineElement).attr 'style', styleAttr
           else if atom.config.get('highlight-line.enableSelectionBorder')

    @showHighlight()

  resetBackground: ->
    $('.line').css('background-color', '')
              .css('border-top','')
              .css('border-bottom','')
              .css('margin-bottom','')
              .css('margin-top','')

  makeLineStyleAttr: ->
    styleAttr = ''

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

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

    @updateUnderlineStyle()
