Add TODO to image::Renderer::node
This commit is contained in:
parent
38b6c84e77
commit
871eb41430
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ impl image::Renderer for Renderer {
|
|||
|
||||
let mut style = Style::default().align_self(image.align_self);
|
||||
|
||||
// TODO: Deal with additional cases
|
||||
style = match (image.width, image.height) {
|
||||
(Length::Units(width), _) => style.width(image.width).height(
|
||||
Length::Units((width as f32 / aspect_ratio).round() as u16),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue