       @g.zoomer.set "alignmentWidth", @maxWidth
     @el.style.width = Math.min calcWidth, @maxWidth
     @el.setAttribute 'width', @el.style.width
+
+  _getPrevNextSelection: (model) ->
+    # looks at the selection of the prev and next el
+    # TODO: this is very naive, as there might be gaps above or below
+
+    modelPrev = model.collection.prev model
+    modelNext = model.collection.next model
+    mPrevSel = @_getSelection modelPrev if modelPrev?
+    mNextSel = @_getSelection modelNext if modelNext?
+    [mPrevSel,mNextSel]
+
+


    return selection


  _adjustWidth: ->
    if @el.parentNode?

    rectHeight = @g.zoomer.get "rowHeight"

    @ctx.font="14px Courier New"

    # skip unneeded blocks at the beginning
    start = Math.max 0, Math.abs(Math.ceil( - @g.zoomer.get('_alignmentScrollLeft') / rectWidth))
    x = - Math.abs( - @g.zoomer.get('_alignmentScrollLeft') % rectWidth)

    for j in [start.. seq.length - 1] by 1
      c = seq[j]
