Re: Re: Resizing the unresizable
Re: Re: Resizing the unresizable
- Subject: Re: Re: Resizing the unresizable
- From: "Tom Harrington" <email@hidden>
- Date: Sat, 22 Jul 2006 13:42:42 -0600
On 7/22/06, Ricky Sharp <email@hidden> wrote:
On Jul 22, 2006, at 11:29 AM, Tom Harrington wrote:
> It seems that the accessibility API makes it possible to resize
> windows that are not normally supposed to be resizable. If you get an
> AXUIElementRef for a window, and then set a new value on
> kAXSizeAttribute for it, the window resizes, regardless of whether the
> window has a "grow" area.
>
> For example, you can resize the System Preferences window, which is
> not normally a resizable window.
>
> I'm not sure if this is a feature or a bug, but I'd appreciate any
> comments on that point.
I'd definitely say that it's a bug.
That's what I thought, but I wondered if there was some
accessibility-related reason you'd want to allow that. I'll see if I
can put together a test case and report it.
As a workaround, I suppose you should be able to ask if the size
attribute is settable, and then only set it if it is.
I worked around it by looking up the window's kAXGrowAreaAttribute,
and assuming that if it's present, the window is supposed to be
resizable. I haven't tried checking whether kAXSizeAttribute is
settable, but it seems that it must be since I was in fact able to set
it. So I'm not sure that would work, but I'll keep it in mind in case
checking for the grow area turns out to not be reliable.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
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