mirror of
https://codeberg.org/vyn/selenite.git
synced 2025-07-01 09:13:19 +00:00
Fix Modal's y position
This commit is contained in:
parent
fa86c85483
commit
810607c01f
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
if (self.absolute-position.y != 100px) {
|
||||
self.y += 100px - self.absolute-position.y;
|
||||
}
|
||||
|
||||
public function show() {
|
||||
popup.show()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue