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