mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix undefined method errors in overlay manager
Access properties directly now
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user