I'm not certain if it is a bug or just me overlooking the obvious, but the BasicDialog.center() method doesn't seem to work for me.
After creating the dialog following the example , I scroll down the page to a button at the bottom. This button calls a new method on the HelloWorld object to center the dialog. I would expect the dialog to move down to the center of the screen recognizing the scroll-bar offset, but unfortunately this doesn't seem to work.
Does anyone else have troubles with the center method?