From 2006fec1cc4b32893975580a36ea1b39e276c7e2 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 12 Sep 2024 21:03:50 +0200 Subject: [PATCH] Fix warning: TypeError: Cannot read property 'height'/'width' of null. Signed-off-by: Camila Ayres --- src/gui/filedetails/FileDetailsView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/filedetails/FileDetailsView.qml b/src/gui/filedetails/FileDetailsView.qml index c7b7104dfa372..3572c66f49905 100644 --- a/src/gui/filedetails/FileDetailsView.qml +++ b/src/gui/filedetails/FileDetailsView.qml @@ -37,8 +37,8 @@ StackView { initialItem: FileDetailsPage { id: fileDetailsPage - width: parent.width - height: parent.height + width: root.width + height: root.height backgroundsVisible: root.backgroundsVisible rootStackView: root onCloseButtonClicked: root.closeButtonClicked()