I am creating two dialogs: a parent and its child.
Parent has size 1082x630
Child has size 1500x900
On parent dialog, when I click on button "Show Child Dialog", its child will be shown.
The problem here is the size of child dialog larger than its parent. So, I want to resize the size of child dialog and show it in the center of its parent dialog.
Please reference my expected, actual images and my code to get the problem.
My expected result: https://drive.google.com/file/d/0B7thkzS9kbhkY1ZMcW9LNGdCZ0E/view?usp=sharing
Actual result: https://drive.google.com/file/d/0B7thkzS9kbhkLU9nLVA2LVU0TDg/view?usp=sharing
Here is my code to resize child dialog manually. I put it on child dialog *.