slint-ui/slint
The internal components of the animation were not rendered
Aberta
#4.787 aberto em 7 de mar. de 2024
a:tool classes & property systemgood first issue
Métricas do repositório
- Stars
- (22.596 estrelas)
- Métricas de merge de PR
- (Mesclagem média 4d 18h) (254 fundiu PRs em 30d)
Description
- I used animation components in the animation component, but the internal components were not rendered
- Internal animation components width I use percentage. If I don't use percentages, it can render successfully
- If I don't use debug(self. width) in init, internal components won't render, see slintpad, code from @jui/drawer/drawer_left.slint
- But if I use debug(self. width) in init, internal components render success, see slintpad
- Difference code(On line 79 of slintpad)
// render success
export component AL inherits DrawerLeft {
width: 100%;
show: true;
background: red;
init => {
debug(self.width)
}
}
// won't render
export component AL inherits DrawerLeft {
width: 100%;
show: true;
background: red;
init => {
// debug(self.width)
}
}