Skip to content

Commit

Permalink
fix: uninstallDialog doesn't center in screen
Browse files Browse the repository at this point in the history
I don't know why it exists when org.deepin.ds.dock is loaded with
the org.deepin.ds.launchpad.
Using layershell to anchor the window's position.

issue: linuxdeepin/developer-center#7824
  • Loading branch information
18202781743 committed Apr 12, 2024
1 parent c5e8805 commit 559c884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ QtObject {
property string appId: ""
property string appName: ""

DLayerShellWindow.anchors: DLayerShellWindow.AnchorNone

minimumWidth: layout.implicitWidth + 2 * DS.Style.dialogWindow.contentHMargin
minimumHeight: layout.implicitHeight + DS.Style.dialogWindow.titleBarHeight
maximumWidth: minimumWidth
Expand Down

0 comments on commit 559c884

Please sign in to comment.