Re: Problem with setting window size with drawers
Re: Problem with setting window size with drawers
- Subject: Re: Problem with setting window size with drawers
- From: Patti Hoa <email@hidden>
- Date: Tue, 6 Sep 2011 10:54:14 -0700
It works fine for me on Lion when resizing the DrawerMadness app with the Accessibility Inspector and drawers opened, with no need to repeat. If this is still a problem for you on 10.7, please file a bug with details.
By the way, the Accessibility Inspector on 10.7 Developer package (formerly UIElementInspector) makes it very easy to test the setting of AXSize. There's editable text fields to allow user to type in the size width and height to set for AXSize.
Patti
On Aug 25, 2011, at 4:29 PM, Filip Krikava wrote:
> Hi,
>
> I'm experiencing a weird issue with drawers. In some cases the call
> AXUIElementSetAttributeValue with NSAccessibilitySizeAttribute to set
> window size does not work as expected.
> It returns no error, but the window is resized to a different size
> then what was put as an argument. However, if the same call with exact
> same arguments is repeated few times it will eventually size the
> window as requested.
>
> This is an example how it looks:
>
> 2011-08-26 01:25:12.104 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.117 ShiftIt[5648:407] window resized to: 1366x913
> 2011-08-26 01:25:12.118 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.165 ShiftIt[5648:407] window resized to: 1262x913
> 2011-08-26 01:25:12.166 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.211 ShiftIt[5648:407] window resized to: 1158x913
> 2011-08-26 01:25:12.211 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.243 ShiftIt[5648:407] window resized to: 1054x913
> 2011-08-26 01:25:12.244 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.281 ShiftIt[5648:407] window resized to: 950x913
> 2011-08-26 01:25:12.282 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.309 ShiftIt[5648:407] window resized to: 846x913
> 2011-08-26 01:25:12.309 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.338 ShiftIt[5648:407] window resized to: 742x913
> 2011-08-26 01:25:12.339 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.381 ShiftIt[5648:407] window resized to: 638x913
> 2011-08-26 01:25:12.382 ShiftIt[5648:407] resizing to: 630x913
> 2011-08-26 01:25:12.436 ShiftIt[5648:407] window resized to: 630x913
>
> If I close the drawer it works ok.
> I also tried the UIElementInspector example app and manually set the
> AXSize attribute for the same window (which is actually DrawerMadness
> example app) and it behaves the same.
> Do I miss something obvious or is this a bug?
>
> Thanks for help
> Filip
> _______________________________________________
> 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
_______________________________________________
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