slint/sixtyfps_compiler/tests/syntax/analysis/binding_loop_layout.60
Olivier Goffart deaa0fddb0 WIP layout: split vertical and horizontal cache
Split the vertical and horizontal pass into different property cache
This will allow to implement "height for with"

This patch does not port the Rust or C++ binding yet
2021-06-16 15:14:07 +02:00

23 lines
846 B
Text

/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
Test := Rectangle {
VerticalLayout {
// ^error{The binding for the property 'layoutinfo_h' is part of a binding loop.} // FIXME: That's an internal property, but people might understand
// ^^error{The binding for the property 'min_width' is part of a binding loop.}
Rectangle {
width: parent.min_width;
// ^error{The binding for the property 'width' is part of a binding loop.}
}
}
}