Skip to content

Commit bff0690

Browse files
mTvare6Keavon
authored andcommitted
fix: width issues
1 parent acf0efd commit bff0690

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

editor/src/node_graph_executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ fn draw_image_frame(images: Vec<(u64, Image<Color>, TransformImage)>, surface_ha
447447
.dyn_into::<HtmlCanvasElement>()
448448
.expect("failed to cast to canvas element");
449449

450-
canvas_element.set_width(image.width);
451-
canvas_element.set_height(image.height);
450+
canvas_element.set_width(1);
451+
canvas_element.set_height(1);
452452
let context = canvas_element.get_context("2d").unwrap().unwrap().dyn_into::<CanvasRenderingContext2d>().unwrap();
453453

454454
let image_data = web_sys::ImageData::new_with_u8_clamped_array_and_sh(array, image.width, image.height).expect("Failed to construct ImageData");

0 commit comments

Comments
 (0)