Henric Persson

Results 310 comments of Henric Persson

IIRC, I don't think this is possible right now. I'd be happy to review a PR adding support for some kind of `minimumIncrement` prop!

Interesting! I wonder if setting a `width: 100%` on the `.calendar` element would work? Setting the `availableWidth` prop is delegated to the [`react-with-available-width`](https://github.com/trotzig/react-with-available-width) package. It will grab the initial width...

As you mentioned, I doubt that this is a Preact issue.

> Setting the availableWidth prop is delegated to the react-with-available-width package. Scrap that! I thought I had used that package but I was wrong, this is handled in the `AvailableTimes`...

Also, is there a public URL I can look at the component in action myself? If not, no worries.

Alright, that's what I wanted. Although you should note that `this.state.availableWidth` isn't guaranteed to be up to date right after a call to `setState`. You might be logging the previous...

Interesting. Are you doing server-side rendering by any chance? Also, if you log `element.getBoundingClientRect()`, what does that give you?

Is that with the inline width? I wonder what’s going on here... if you inspect the parent div in the browser, does it also show you a dimension-less element?

I'm using `setRef` to grab an initial wrapper width and memoize the wrapper element. The width is then used to make rendering the calendar UI simpler. There are plenty of...

Didn't mean to close this issue (github did it for me because I had tagged the issue in a commit).