slint/internal/compiler/tests/syntax/analysis/binding_loop_popupwindow.slint
Olivier Goffart e5e3128986 Binding analysis: We shouldn't report binding loop based on base bindings
In this case, there is an explicit binding in the PopupWindow::width,
so we shouldn't continue and find loop based on the implicit bindings

Fixes #8889
2025-07-11 05:16:25 +02:00

21 lines
525 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
// Issue #8889
// There shouldn't be error or warnings in this case
component MyPopup inherits PopupWindow {
property <length> first_column_width: 0.3 * root.width;
height: 400px;
width: 600px;
header := HorizontalLayout {
padding_left: root.first_column_width;
}
}
export component Test inherits Window {
popup := MyPopup { }
}