Skip to content

Commit 85e0ff8

Browse files
committed
Fix positional issue with release notes dialog on startup
1 parent d6294a8 commit 85e0ff8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/gui/Src/Gui/MainWindow.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,10 @@ void MainWindow::showReleaseNotes(duint cutoffEpoch)
12451245
}
12461246

12471247
ReleaseNotesDialog dialog({}, this);
1248-
dialog.move(frameGeometry().center() - dialog.rect().center());
1248+
auto titleBarHeight = frameGeometry().height() - geometry().height();
1249+
auto position = frameGeometry().center() - dialog.frameGeometry().center();
1250+
position.setY(position.y() - titleBarHeight / 2);
1251+
dialog.move(position);
12491252
dialog.setMarkdown(markdown, "https://github.com/x64dbg/x64dbg/issues/");
12501253
dialog.setWindowIcon(DIcon("bug"));
12511254
dialog.exec();

src/gui/Src/Gui/ReleaseNotesDialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>867</width>
9+
<width>790</width>
1010
<height>560</height>
1111
</rect>
1212
</property>

0 commit comments

Comments
 (0)