Add ContentFit support to Svg widget
This commit is contained in:
parent
c910e23919
commit
83c0e0f7a8
2 changed files with 64 additions and 14 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue