mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
![]() If you have a window like so: ``` component W inherits Window { width: 200px; // or some other bindings } ``` Before this patch, it will be converted by the compiler to something like ``` component W inherits Window { width: 200px; // or some other bindings min-width: width; // (not actual property, but part of the layout_info) max-width: width; } ``` When the window is on the screen, the platform backend will set the max with and min width on the window manager window to the value from the layout info. But slint will also set the width and the height of the WindowItem to the actual value. This will break the binding for width if any, and will also cause the min and max with do be updated, which is wrong. We haven't had much problem with that before, but with the ComponentContainer, this becomes a problem as we want to set the width and height of the inner from the outer by adding a two way binding, which cause a binding loop at runtime. The behavior change is that if you have a fixed window size and use that on a MCU or platform that has a different size, the window will be cropped or padded but will no longer be resized |
||
---|---|---|
.. | ||
generator | ||
LICENSES | ||
llr | ||
parser | ||
parser-test-macro | ||
passes | ||
tests | ||
widgets | ||
build.rs | ||
builtin_macros.rs | ||
builtins.slint | ||
Cargo.toml | ||
diagnostics.rs | ||
embedded_resources.rs | ||
expression_tree.rs | ||
fileaccess.rs | ||
generator.rs | ||
langtype.rs | ||
layout.rs | ||
lexer.rs | ||
lib.rs | ||
literals.rs | ||
llr.rs | ||
load_builtins.rs | ||
lookup.rs | ||
namedreference.rs | ||
object_tree.rs | ||
parser.rs | ||
passes.rs | ||
pathutils.rs | ||
README.md | ||
typeloader.rs | ||
typeregister.rs |
The Slint Compiler Library
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint
crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z"
in Cargo.toml.