Fancy effects: fix container positioning

This commit is contained in:
Alexey Andreyev
2021-02-08 23:39:22 +03:00
committed by Carl Schwan
parent 01f8c3b09f
commit 008d19e68b
2 changed files with 3 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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) {