slint-ui/slint

The internal components of the animation were not rendered

Offen

#4.787 geöffnet am 07.03.2024

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (881 Forks)batch import
a:tool classes & property systemgood first issue

Repository-Metriken

Stars
 (22.596 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 18h) (254 gemergte PRs in 30 T)

Beschreibung

  1. I used animation components in the animation component, but the internal components were not rendered
  2. Internal animation components width I use percentage. If I don't use percentages, it can render successfully
  3. If I don't use debug(self. width) in init, internal components won't render, see slintpad, code from @jui/drawer/drawer_left.slint
  4. But if I use debug(self. width) in init, internal components render success, see slintpad
  5. 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)
    }
}

Contributor Guide