ZeeCoder / use-resize-observer

A React hook that allows you to use a ResizeObserver to measure an element's size.
MIT License
651 stars 42 forks source link

Are the terms `blockSize` and `inlineSize` in the docs backwards? #104

Closed tremby closed 1 year ago

tremby commented 1 year ago

In the docs you have, in a table:

width / undefined | number / The width (or "blockSize") of the element. height / undefined | number / The height (or "inlineSize") of the element.

With "left to right then top to bottom" layouts, block is vertical and inline is horizontal, so these seem backwards.

ZeeCoder commented 1 year ago

You're right!

Some proof:

Fixed in master. Nice spot, ty! :pray: