From 008d19e68bfaf0f80beebadfff01f534b1f85f25 Mon Sep 17 00:00:00 2001 From: Alexey Andreyev Date: Mon, 8 Feb 2021 23:39:22 +0300 Subject: [PATCH] Fancy effects: fix container positioning --- imports/NeoChat/Component/FancyEffectsContainer.qml | 3 ++- imports/NeoChat/Page/RoomPage.qml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/imports/NeoChat/Component/FancyEffectsContainer.qml b/imports/NeoChat/Component/FancyEffectsContainer.qml index a51590e21..91d22d30e 100644 --- a/imports/NeoChat/Component/FancyEffectsContainer.qml +++ b/imports/NeoChat/Component/FancyEffectsContainer.qml @@ -176,12 +176,13 @@ Item { repeat: true onTriggered: { customEmit(Math.random() * parent.width, - Math.random() * parent.width) // height is 0 somehow + Math.random() * parent.height) } } ParticleSystem { id: fireworksSystem + anchors.fill: parent running: fireworksInternalTimer.running onRunningChanged: { if (running) { diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index d141bfa86..9874518ca 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -595,11 +595,9 @@ Kirigami.ScrollablePage { Layout.fillWidth: true } - FancyEffectsContainer { + background: FancyEffectsContainer { id: fancyEffectsContainer - Layout.fillWidth: true - Layout.fillHeight: true enabled: Config.showFancyEffects function processFancyEffectsReason(fancyEffect) {