From 810607c01fa659f31bd11bd41a9ee5611e5db8ea Mon Sep 17 00:00:00 2001 From: Vyn Date: Tue, 24 Jun 2025 10:03:21 +0200 Subject: [PATCH] Fix Modal's y position --- components/Modal.slint | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Modal.slint b/components/Modal.slint index a81748a..19d90ce 100644 --- a/components/Modal.slint +++ b/components/Modal.slint @@ -1,13 +1,13 @@ import { Palette } from "Palette.slint"; export component Modal inherits Rectangle { - init() => { + public function show() { if (self.absolute-position.x < 500px) { self.x += 500px - self.absolute-position.x; } - } - - public function show() { + if (self.absolute-position.y != 100px) { + self.y += 100px - self.absolute-position.y; + } popup.show() }