diff --git a/styling/aspect-ratio.md b/styling/aspect-ratio.md index 3428d9d..a4f10f3 100644 --- a/styling/aspect-ratio.md +++ b/styling/aspect-ratio.md @@ -26,7 +26,7 @@ function AspectView(props) { if (width === 0) { style.push({ width: height * aspectRatio, height }); } else { - style.push({ width, height: width * aspectRatio }); + style.push({ width, height: width / aspectRatio }); } }