Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BoxShadow property incorrectly considered const
We steal the bindings for the geometry from the containing element, so we should also take the analysis. Fixes #1233
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/cases/crashes/issue_1233_listview_const_shadow.slint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright © SixtyFPS GmbH <info@slint-ui.com> | ||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial | ||
|
||
|
||
import { ListView } from "std-widgets.slint"; | ||
|
||
App := Window { | ||
width: 100px; | ||
height: 600px; | ||
|
||
ListView { | ||
for item in [ | ||
{}, {}, | ||
] : Rectangle { | ||
drop-shadow-blur: 5px; | ||
HorizontalLayout { | ||
Image { | ||
source: @image-url("../../../logo/slint-logo-square-light-128x128.png"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
/* | ||
```rust | ||
let ui = App::new(); | ||
// this should not panic | ||
slint::testing::send_mouse_click(&ui, 50., 50.); | ||
``` | ||
*/ |