Aligning QDialogBox to top of page.
Wed, 06/22/2011 - 21:34
Hi,
I have a modal dialog box defined as such:
<?php
$this->dlgHelp = new QDialogBox($this);
$this->dlgHelp->Title = "Help Dialog"
$this->dlgHelp->Text = "Help me help you";
$this->dlgHelp->Width = 600;
?>The dialog box shows up just fine when I click my button to show it, however, the "top" of the dialog box is way down the page (30%? 50%?)--I want to have it very close to the top, maybe only 60-70px from the top of the page or so. As a test, I figured I could just do:
<?php
$this->dlgHelp->Top = '0px';
?>But that doesn't seem to have any effect. How do I change the alignment of modal dialog boxes?
I also tried the following using 'Position', neither of which worked:
<?php
$this->dlgHelp->Position = 'top';
$this->dlgHelp->Position = '[0,0]';
?>
Try debugging the issue through Firebugs CSS viewer and debugger. Once you find the right CSS class or element ID, set it's CSS properties and you should be good to go.