Fixed spelling of "instance" (#25974)

This commit is contained in:
betheymc
2018-12-05 18:09:21 -05:00
committed by Randell Dawson
parent 28703b5625
commit 1d1db25180

View File

@@ -10,7 +10,7 @@ The `width` and `height` attributes will control the size of the canvas. These a
In the above pen, both `canvas` elements have the same dimensions set through CSS. However, one has twice the height set through the `height` attribute, thus leading the exact same rectangle to become rendered at half the height.
This can cause problems when you want to make a dynamically sized canvas. For instnace, you may want to make a full-screen canvas, or use a canvas as a thumbnail.
This can cause problems when you want to make a dynamically sized canvas. For instance, you may want to make a full-screen canvas, or use a canvas as a thumbnail.
In order to make the size of the drawing context match the rendered size of the `canvas` element, we have to force this in realtime. One common practice is to put the following handler in the `onResize` listener.