Fix undefined method errors in overlay manager

Access properties directly now
This commit is contained in:
Nathan Sobo
2015-02-02 23:41:43 -07:00
parent 2dc29a60ef
commit 0a6116a785

View File

@@ -30,12 +30,12 @@ class OverlayManager
{scrollTop, scrollLeft} = presenter.state.content
left = pixelPosition.left
if left + itemWidth - scrollLeft > presenter.getContentFrameWidth() and left - itemWidth >= scrollLeft
if left + itemWidth - scrollLeft > presenter.contentFrameWidth and left - itemWidth >= scrollLeft
left -= itemWidth
top = pixelPosition.top + presenter.getLineHeight()
if top + itemHeight - scrollTop > presenter.getHeight() and top - itemHeight - presenter.getLineHeight() >= scrollTop
top -= itemHeight + presenter.getLineHeight()
top = pixelPosition.top + presenter.lineHeight
if top + itemHeight - scrollTop > presenter.getHeight() and top - itemHeight - presenter.lineHeight >= scrollTop
top -= itemHeight + presenter.lineHeight
overlayNode.style.top = top + 'px'
overlayNode.style.left = left + 'px'