PictureDialog: fix window height
This commit is contained in:
parent
bb06af8a79
commit
392f35a96d
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ void PictureDialog::addPreviousNextButtons()
|
||||||
|
|
||||||
void PictureDialog::adaptDialogSize()
|
void PictureDialog::adaptDialogSize()
|
||||||
{
|
{
|
||||||
int newDialogHeight = (960 * AppEnv::screenRatio()) + ui->jsonFrame->heightForWidth(width());
|
int newDialogHeight = (536 * AppEnv::screenRatio()) + ui->jsonFrame->heightForWidth(width());
|
||||||
if (naviEnabled)
|
if (naviEnabled)
|
||||||
newDialogHeight = newDialogHeight + layout()->menuBar()->height();
|
newDialogHeight = newDialogHeight + layout()->menuBar()->height();
|
||||||
const QSize windowSize(width(), newDialogHeight);
|
const QSize windowSize(width(), newDialogHeight);
|
||||||
|
|
Loading…
Reference in a new issue