slint/internal/compiler/tests/syntax/analysis/binding_loop_mappointtowindow.slint
Simon Hausmann 016d776b7d Simplify implementation of absolute-position
Since we materialize only one point property, we don't need to cache the
parent position in a separate property, but we can just store that in
the binding.
2023-06-21 10:02:04 +02:00

14 lines
488 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
export App := Rectangle {
Rectangle {
x: inner.absolute-position.x > 10px ? 10px : 0px;
// ^error{The binding for the property 'x' is part of a binding loop}
inner := Rectangle {
// ^error{The binding for the property 'absolute-position' is part of a binding loop}
}
}
}