Incorrect AxPosition & AxSize for menu items in Leopard
Incorrect AxPosition & AxSize for menu items in Leopard
- Subject: Incorrect AxPosition & AxSize for menu items in Leopard
- From: Scott Guelich <email@hidden>
- Date: Sat, 5 Jan 2008 21:09:03 -0500
I ran into cases where AxPosition and AxSize are being reported
incorrectly for menu items in Leopard, and I was wondering if anyone
else had encountered this and whether it's a known issue.
The first one (Bug# 5671984) just affects the Help menu and seems to
be due to the new Search field. All menu items that follow the Search
field in the Help menu report the position and size of the menu item
immediately above them instead of their own values. Check out a longer
Help menu with separators and you'll see that everything is off by one.
The second one (Bug# 5671806) appears to affect the application menu
of Carbon applications. The position and size for the first few menu
items will be reported correctly, but at some point a menu item will
report the size and position of an earlier menu item (say 3 items
above it), and all subsequent menu items will follow suit (i.e. each
would report the position and size of the menu item 3 items above it).
This affects Finder (beginning with the separator above Services) and
iTunes (beginning with Preferences), but not Xcode or Safari. Oh, and
one of the menu items in the Finder's application menu (Hide Others)
randomly returns null for both position and size... just for extra
kicks I guess.
AXUIElementCopyAttributeValue() is the call returning the incorrect
values of course, but you can easily visualize all these things by
using Accessibility Inspector and turning highlighting on. The
highlighting window is unfortunately drawn under the menu, but it's
still visible.
This is on 10.5.1. I don't recall seeing the application menu problems
on Tiger, but I no longer have a Tiger installation to check against.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden