-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar: Panel width too small with default Tailwind #5830
Comments
I simplified your reproducer: https://stackblitz.com/edit/ewd4me?file=src%2FApp.jsx Definitely an issue I can't quite tell why though or what TailWind CSS is causing that |
I see the issue |
Looks like a bug with width calculation that is not happening on styled mode. if (!props.touchUI && overlayRef && overlayRef.current && inputRef && inputRef.current && !appendDisabled()) {
let inputWidth = DomHandler.getOuterWidth(inputRef.current);
// #5435 must have reasonable width if input is too small
if (inputWidth < 220) {
inputWidth = 220;
}
if (props.view === 'date') {
overlayRef.current.style.width = DomHandler.getOuterWidth(overlayRef.current) + 'px';
overlayRef.current.style.minWidth = inputWidth + 'px';
} else {
overlayRef.current.style.minWidth = inputWidth + 'px';
overlayRef.current.style.width = inputWidth + 'px';
}
} |
Any updates? |
@melloware thanks, however this doesn't seem to be fixed yet: Please reopen. |
Could be from here: I replaced |
@zawasp can you submit a PR and update the doc page as well like you did for the separator? |
@melloware *10.5.1. Version 10.5.2 is not out yet, or is it? |
10.5.1 |
Describe the bug
Calendar panel is too small.
Reproducer
https://stackblitz.com/edit/ewd4me?file=src%2FApp.jsx
PrimeReact version
10.3.3
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
Added simple Calendar with default Tailwind styling.
Expected behavior
Panel extends the full width of its children
The text was updated successfully, but these errors were encountered: