🚧 Code tweaks
This commit is contained in:
parent
0989b35925
commit
cb18e9a5c6
8 changed files with 8 additions and 8 deletions
|
|
@ -43,7 +43,7 @@ impl ComponentTrait for Image {
|
|||
(self.renderable.check)(cx)
|
||||
}
|
||||
|
||||
fn prepare_component(&self, _: &mut Context) -> PrepareMarkup {
|
||||
fn prepare_component(&self, _cx: &mut Context) -> PrepareMarkup {
|
||||
let (width, height) = match self.size() {
|
||||
ImageSize::Auto => (None, None),
|
||||
ImageSize::Size(width, height) => (Some(width), Some(height)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue