mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Update RunningScripts height to take menu bar into account
This commit is contained in:
parent
e6def6e35b
commit
55acff02a1
1 changed files with 4 additions and 2 deletions
|
@ -156,9 +156,11 @@ void RunningScriptsWidget::showEvent(QShowEvent* event) {
|
|||
|
||||
const QRect parentGeometry = parentWidget()->geometry();
|
||||
int titleBarHeight = UIUtil::getWindowTitleBarHeight(this);
|
||||
int menuBarHeight = Menu::getInstance()->geometry().height();
|
||||
int topMargin = titleBarHeight + menuBarHeight;
|
||||
|
||||
setGeometry(parentGeometry.topLeft().x(), parentGeometry.topLeft().y() + titleBarHeight,
|
||||
size().width(), parentWidget()->height() - titleBarHeight);
|
||||
setGeometry(parentGeometry.topLeft().x(), parentGeometry.topLeft().y() + topMargin,
|
||||
size().width(), parentWidget()->height() - topMargin);
|
||||
|
||||
QWidget::showEvent(event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue