try setting position -1 -1. Thats "center" for dialogs when they open >:D