Add ContentFit support to Svg widget

This commit is contained in:
Héctor Ramón Jiménez 2022-02-16 17:59:39 +07:00
parent c910e23919
commit 83c0e0f7a8
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 64 additions and 14 deletions

View file

@ -120,7 +120,6 @@ where
_cursor_position: Point,
_viewport: &Rectangle,
) {
// The raw w/h of the underlying image
let (width, height) = renderer.dimensions(&self.handle);
let image_size = Size::new(width as f32, height as f32);