PDA

View Full Version : BasicDialog.center()



jensschumacher
25 Jan 2007, 10:16 AM
Hi,

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 [1], 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?

Cheers,
Jens


[1] http://www.yui-ext.com/deploy/yui-ext/examples/dialog/hello.html

jack.slocum
25 Jan 2007, 10:23 AM
What version are you running?

jensschumacher
26 Jan 2007, 1:12 PM
Sorry should have added the version information in my original post.

I'm running version 0.33 and tested on Safari and Firefox. Instead of moving the box to the center it briefly flickers and disappears if I remember correctly. Let me know if you want me to mock up an example or provide any additional information.

Cheers,
Jens