Rajesh2015 / opal

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

Dialog.choice show dialog box half outside the screen #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I used the code from the samples on the wiki :

final int choice = Dialog.choice("What do you want to do with your game 
in\nprogress?", "", 1, new ChoiceItem("Exit and save my game", "Save your game 
in progress, then exit. "
                        + "This will\noverwrite any previously saved games."), new ChoiceItem("Exit and don't save", "Exit without saving your game. "
                        + "This is counted\nas a loss in your statistics."), new ChoiceItem("Don't exit", "Return to your game progress"));
System.out.println("Choice is..." + choice);

What is the expected output? What do you see instead?
Centered box on the screen, half outside box.

What version of the product are you using? On what operating system?
opal 0.9.5.2, Windows 8, note that i have 2 screens connected, and the second 
is placed on the left of the screenshot (so the box isn't half on the other 
screen)

See the screenshot :)

Original issue reported on code.google.com by maximili...@gmail.com on 22 Jan 2014 at 1:00

Attachments:

GoogleCodeExporter commented 9 years ago
Had a similiar issue. That is caused by the pack method of the Dialog
Replacing the computation of the location with the code of 
TitleAreaDialog#getInitialLocation fixed that for me

Original comment by elith...@gmail.com on 13 Mar 2014 at 8:36

GoogleCodeExporter commented 9 years ago
Fixed in V0.9.9b version of Opal, thank you for your report

Original comment by laurent....@gmail.com on 17 Mar 2014 at 8:37