Commit f9f755d8 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Fix x coordinate when adjusting scroll position due to obscuring banner

parent e2cb51ba
......@@ -360,8 +360,9 @@ def scrollToTopEdge(obj, startOffset=None, endOffset=None):
if not banner:
return
objX, objY, objWidth, objHeight = _objectExtents(obj)
bannerX, bannerY, bannerWidth, bannerHeight = _objectExtents(banner)
_scrollToPoint(obj, bannerX, bannerY + bannerHeight + 25, startOffset, endOffset)
_scrollToPoint(obj, objX, bannerY + bannerHeight + 25, startOffset, endOffset)
def scrollToTopLeft(obj, startOffset=None, endOffset=None):
if not _canScrollTo:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment