Skip to content

Commit 287ef26

Browse files
authored
Fix SVG viewBox capitalization in renderer (#2131)
fix `viewBox` capitalization
1 parent fc0cf60 commit 287ef26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-graph/gcore/src/graphic_element/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl SvgRender {
153153
pub fn wrap_with_transform(&mut self, transform: DAffine2, size: Option<DVec2>) {
154154
let defs = &self.svg_defs;
155155
let view_box = size
156-
.map(|size| format!("viewbox=\"0 0 {} {}\" width=\"{}\" height=\"{}\"", size.x, size.y, size.x, size.y))
156+
.map(|size| format!("viewBox=\"0 0 {} {}\" width=\"{}\" height=\"{}\"", size.x, size.y, size.x, size.y))
157157
.unwrap_or_default();
158158

159159
let matrix = format_transform_matrix(transform);

0 commit comments

Comments
 (0)