angelalui153 / shiftit

Automatically exported from code.google.com/p/shiftit
0 stars 0 forks source link

Iphoto Fails to resize #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Load iPhoto 
2.Full Screen does not work. 
3.

What is the expected output? What do you see instead?
Screen position works  but the window will not resize. 

What version of the product are you using?
Everything is Up to date. 

On what operating system( 10.5
or 10.6)?

10.6
Are you using a dual monitor?
Three so yes. 
Attach screenshots if it is a problem with the window position and size.

Please attach logs if you notice any crashes.

Please provide any additional information below.

Original issue reported on code.google.com by russosb...@gmail.com on 18 May 2010 at 11:43

Attachments:

GoogleCodeExporter commented 8 years ago
Yep, I can confirm the same problem here
Iphoto 8 and 10.6 and Shiftit r38
It happens with iMovie too ... and I have had one or two other windows that 
behave
the same with other applications.
It just does not respond to Accessiblity call NSAccessibilitySizeAttribute ...
Probably they are some costum drawn windows that don't respond to some Window 
API calls.
I don't think there is much we could do about this.

Aside from a very ugly hack that just came to my mind :-o :

For windows that react to NSAccessibilitySizeAttribute with an error we COULD 
try to 
1. Save the mouse cursor position
2. Move the mouse to the lower right of the window (we have the coords)
3. Send mouse down event
4. Move mouse to desired position (size of the window)
5. Move mouse to the original position.

Disclaimer : I know that this is very ugly and won't look pretty to the user, 
but it
could work (have not tested it), and would probably increase users productivity;
perhaps it could be made an option in the prefs to try this for non responding
windows ...

Your opinions to this ? What does the lead dev say ?

Regards Marco

Original comment by masc...@gmail.com on 19 May 2010 at 7:15