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
Original issue reported on code.google.com by
aaronle...@gmail.com
on 24 Oct 2008 at 8:41Attachments: