Help. Why are my days stretching only on certain months? #1261
Unanswered
bvelasquez
asked this question in
Support
Replies: 2 comments 1 reply
-
(Not an answer but didn't feel like creating a new discussion/issue is necessary) I came to try and find a solution to this exact thing. In our case it's not a big deal but it does look weird and I'd love for a way to opt out of this behaviour. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The CSS reason for this is:
flexbox is stretching vertically by default. Changing it to this makes it look like this instead:
https://codesandbox.io/s/react-day-picker-examples-modifiers-forked-9m4ih?file=/example.js |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Purposely styled the component to illustrate the issue I'm having. The days are stretched only on certain months. October looks correct, but Aug, and Sept. are stretched. No additional styling except for the color changes.
I did notice that it only happens when numberOfMonths is greater than 1.
Edit: Ok, October has 6 rows of data. The other two months only 5 rows of data. So, they are stretching to maintain size with the October table. any way to correct this?
Beta Was this translation helpful? Give feedback.
All reactions