Fix bug where images weren't rendered until image is resized
This commit is contained in:
parent
020e6c4f92
commit
18572a6eff
|
@ -49,12 +49,16 @@ impl Editor {
|
||||||
|
|
||||||
let (controls, cmd) = Controls::new(song);
|
let (controls, cmd) = Controls::new(song);
|
||||||
|
|
||||||
(Self {
|
let mut editor = Self {
|
||||||
lyrics: Lyrics::new(),
|
lyrics: Lyrics::new(),
|
||||||
dimensions: size,
|
dimensions: size,
|
||||||
cached_resized_bg: None,
|
cached_resized_bg: None,
|
||||||
controls, theme, bg_img,
|
controls, theme, bg_img,
|
||||||
}, cmd)
|
};
|
||||||
|
|
||||||
|
editor.notify_resized(size.0, size.1);
|
||||||
|
|
||||||
|
(editor, cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: work on untangling this mess
|
// TODO: work on untangling this mess
|
||||||
|
|
Loading…
Reference in a new issue