Add TODO to image::Renderer::node

This commit is contained in:
Héctor Ramón Jiménez 2019-10-23 01:34:58 +02:00
parent 38b6c84e77
commit 871eb41430

View file

@ -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),