ZeeCoder / use-resize-observer

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

No way to set box sizing #41

Closed hipstersmoothie closed 4 years ago

hipstersmoothie commented 4 years ago

Bug Report

I need to be able to set the box that resize observers uses

Describe the Bug

Right now I can't get it to respect box-sizing: border-box

How to Reproduce

Try to size an element with box-sizing: border-box

Expected Behavior

Should be able to make it take padding into account

ZeeCoder commented 4 years ago

Might be a duplicate of this: https://github.com/ZeeCoder/use-resize-observer/pull/31

hipstersmoothie commented 4 years ago

It is! Feel free to close this