Fix placement of our thumbs down dialog and datalake opt-in dialog. (#2540)

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
AT 2024-07-03 11:59:48 -04:00 committed by GitHub
parent 45aa141189
commit a34b0d78cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -991,11 +991,8 @@ Rectangle {
ThumbsDownDialog {
id: thumbsDownDialog
property point globalPoint: mapFromItem(window,
window.width / 2 - width / 2,
window.height / 2 - height / 2)
x: globalPoint.x
y: globalPoint.y
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
width: 640
height: 300
property string text: value

View File

@ -7,6 +7,7 @@ import QtQuick.Layouts
Dialog {
id: myDialog
parent: Overlay.overlay
property alias closeButtonVisible: myCloseButton.visible
background: Rectangle {
width: parent.width