digidem / react-dimensions

[Looking for maintainers]
http://lab.digital-democracy.org/react-dimensions/
450 stars 77 forks source link

Do not render "0" when parent height and width are both 0. #61

Open stonebk opened 7 years ago

stonebk commented 7 years ago

The following will render "0":

const Foo = Dimensions()(() => <div />);
const Bar = () => {
    return <div style={{ width: 0, height: 0 }}><Foo /></div>;
};
gabegorelick commented 7 years ago

Any plans to merge this?

yocontra commented 7 years ago

Yeah, this is a pretty weird bug - would be great to have this merged.