1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
4export component Test {
5 VerticalLayout {
6 spacing: 1px;
7
8 hl := HorizontalLayout {
9 Rectangle {
10 // At first I didn't see that there was an HorizontalLayout in-between in the original code.
11 width: 20px - parent.spacing;
12 }
13 }
14
15 property <bool> test: hl.preferred-width == 20px;
16 }
17}