This commit is contained in:
Avently 2024-02-06 22:28:14 +07:00
parent ff85022669
commit 2c9866a107

View File

@ -14,8 +14,8 @@ data class WindowPositionSize(
) {
fun safeValues(): WindowPositionSize =
copy(
x = x.coerceIn(0, 10000),
y = x.coerceIn(0, 10000),
x = x.coerceIn(-500, 10000),
y = x.coerceIn(-100, 10000),
width = width.coerceIn(100, 10000),
height = height.coerceIn(100, 10000)
)