From 9c3382f0d7ba89cd489bb8144441c107f4108ce5 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Thu, 18 Apr 2024 09:04:06 +0300 Subject: [PATCH] Add extra offset for dialog frame PR #20715. Closes #20609. --- src/gui/addnewtorrentdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index 89133e084..a2d9d49db 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -159,7 +159,8 @@ namespace delta.setY(0); dialogGeometry.translate(delta); - delta = screenGeometry.topLeft() - dialogGeometry.topLeft(); + const QPoint frameOffset {10, 40}; + delta = screenGeometry.topLeft() - dialogGeometry.topLeft() + frameOffset; if (delta.x() < 0) delta.setX(0); if (delta.y() < 0)