[orca] Fix x coordinate when adjusting scroll position due to obscuring banner
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix x coordinate when adjusting scroll position due to obscuring banner
- Date: Wed, 30 Oct 2019 14:08:05 +0000 (UTC)
commit f9f755d85f483ab678aa63238101cf8e489b9f2e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Oct 30 10:07:30 2019 -0400
Fix x coordinate when adjusting scroll position due to obscuring banner
src/orca/eventsynthesizer.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/eventsynthesizer.py b/src/orca/eventsynthesizer.py
index da6a24a55..e557e09b5 100644
--- a/src/orca/eventsynthesizer.py
+++ b/src/orca/eventsynthesizer.py
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]