Skip to content
Snippets Groups Projects
Commit e0f3441b authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix NaN in test and update snapshot

parent 3c4c5a6d
No related branches found
No related tags found
No related merge requests found
......@@ -105,12 +105,12 @@ class CostumeCanvas extends React.Component {
return (
<canvas
className={this.props.className}
height={this.props.height * window.devicePixelRatio}
height={this.props.height * (window.devicePixelRatio || 1)}
style={{
height: `${this.props.height}px`,
width: `${this.props.width}px`
}}
width={this.props.width * window.devicePixelRatio}
width={this.props.width * (window.devicePixelRatio || 1)}
ref={c => (this.canvas = c)} // eslint-disable-line react/jsx-sort-props
/>
);
......
......@@ -26,6 +26,12 @@ exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = `
<canvas
className={undefined}
height={32}
style={
Object {
"height": "32px",
"width": "32px",
}
}
width={32}
/>
<div
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment