From 0c663e9d495adc5d54daa4db77fc77639c889905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 25 Nov 2025 16:13:18 +0100 Subject: [PATCH] Fix NymeaDialog implicit width warning --- nymea-app/ui/components/NymeaDialog.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nymea-app/ui/components/NymeaDialog.qml b/nymea-app/ui/components/NymeaDialog.qml index eb64e977..8c34e166 100644 --- a/nymea-app/ui/components/NymeaDialog.qml +++ b/nymea-app/ui/components/NymeaDialog.qml @@ -25,11 +25,13 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts +import QtQuick.Window import Nymea Dialog { id: root - width: Math.min(parent.width * .8, Math.max(contentLabel.implicitWidth, 400)) + implicitWidth: Math.max(contentLabel.implicitWidth + app.margins * 2, 400) + width: Math.min((parent ? parent.width : Screen.width) * .8, implicitWidth) x: (parent.width - width) / 2 y: (parent.height - height) / 2