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 repeat: true
onTriggered: { onTriggered: {
customEmit(Math.random() * parent.width, customEmit(Math.random() * parent.width,
Math.random() * parent.width) // height is 0 somehow Math.random() * parent.height)
} }
} }
ParticleSystem { ParticleSystem {
id: fireworksSystem id: fireworksSystem
anchors.fill: parent
running: fireworksInternalTimer.running running: fireworksInternalTimer.running
onRunningChanged: { onRunningChanged: {
if (running) { if (running) {

View File

@@ -595,11 +595,9 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true Layout.fillWidth: true
} }
FancyEffectsContainer { background: FancyEffectsContainer {
id: fancyEffectsContainer id: fancyEffectsContainer
Layout.fillWidth: true
Layout.fillHeight: true
enabled: Config.showFancyEffects enabled: Config.showFancyEffects
function processFancyEffectsReason(fancyEffect) { function processFancyEffectsReason(fancyEffect) {