Fix centering of MessageDialog

Instead of centering in the parent the dialog is now center within the
`Overlay.overlay`. This is the window container.

CURA 8687
This commit is contained in:
casper 2022-02-09 16:45:34 +01:00
parent 84ecc8d168
commit 2e1f2a37a3
2 changed files with 0 additions and 2 deletions

View file

@ -63,7 +63,6 @@ Item
UM.MessageDialog UM.MessageDialog
{ {
id: newProjectDialog id: newProjectDialog
anchors.centerIn: base
title: catalog.i18nc("@title:window", "New project") title: catalog.i18nc("@title:window", "New project")
text: catalog.i18nc("@info:question", "Are you sure you want to start a new project? This will clear the build plate and any unsaved settings.") text: catalog.i18nc("@info:question", "Are you sure you want to start a new project? This will clear the build plate and any unsaved settings.")

View file

@ -122,7 +122,6 @@ Item
UM.MessageDialog UM.MessageDialog
{ {
id: confirmDiameterChangeDialog id: confirmDiameterChangeDialog
anchors.centerIn: base
title: catalog.i18nc("@title:window", "Confirm Diameter Change") title: catalog.i18nc("@title:window", "Confirm Diameter Change")
text: catalog.i18nc("@label (%1 is a number)", "The new filament diameter is set to %1 mm, which is not compatible with the current extruder. Do you wish to continue?".arg(new_diameter_value)) text: catalog.i18nc("@label (%1 is a number)", "The new filament diameter is set to %1 mm, which is not compatible with the current extruder. Do you wish to continue?".arg(new_diameter_value))