tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

Align aspect ratio type with code (#333)

97005dee7b55fb996a909f8f3503f9712defbb57 · by adjabaev · (3 years ago) · parent 75076f822 · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −1

diff --git a/docs/style-properties.md b/docs/style-properties.md
index 0d3373d60..6b3013f57 100644
--- a/docs/style-properties.md
+++ b/docs/style-properties.md
@@ -17,7 +17,7 @@ N = Supported in spec but not implemented in Taffy
 | `size`                   | Y    | Y    | `Size<Dimension>`                     | 16    | -      | The nominal height and width of item                                                        |
 | `min_size`               | Y    | Y    | `Size<Dimension>`                     | 16    | -      | The minimum height and width of the item                                                    |
 | `max_size`               | Y    | Y    | `Size<Dimension>`                     | 16    | -      | The maximum height and width of the item                                                    |
-| `aspect_ratio`           | Y    | 3    | `f32`                                 | 4     | -      | The preferred aspect ratio (calculated as width divided by height)                          |
+| `aspect_ratio`           | Y    | 3    | `Option<f32>`                         | 4     | -      | The preferred aspect ratio (calculated as width divided by height)                          |
 | **Item spacing**         |      |      |                                       |       |        |                                                                                             |
 | `padding`                | Y    | ~Y   | `Rect<LengthPercentage>`              | 32    | -      | How large should the padding be on each side?                                               |
 | `border`                 | Y    | ~Y   | `Rect<LengthPercentage>`              | 32    | -      | How large should the border be on each side?                                                |