flpvn / wittytwitter

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

Options dialog goes off-screen if Witty main window is near the edge #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put the main Witty window near the edge of the screen.
2. Open the options window.

What is the expected output? What do you see instead?
Nothing unexpected happens. The dialog centers on the parent (as it's coded 
to) however it can be clipped off the edge of the screen. I would prefer to 
see it move itself back on-screen fully even if it means not being fully 
centered on the parent.

I'm attaching a patch that implements the behavior I'm talking about. :) 
This patch causes the Options dialog to look for the screen boundaries and 
adjust itself to be back in bounds.
Note that I'm a WinForms developer, I looked for a way to do this purely 
with WPF, but in the end had to resort to using System.Windows.Forms.Screen 
to get the current screen working area, etc.
Thanks!
Aaron Lerch
http://twitter.com/aaronlerch

Original issue reported on code.google.com by aaronle...@gmail.com on 24 Oct 2008 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jongallo...@gmail.com on 14 Dec 2008 at 4:54

GoogleCodeExporter commented 9 years ago

Original comment by jongallo...@gmail.com on 15 Dec 2008 at 6:40