Skip to content
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

[BUG] - DatePicker width when zoom 90% #2978

Open
tranquocviet226 opened this issue May 11, 2024 · 6 comments
Open

[BUG] - DatePicker width when zoom 90% #2978

tranquocviet226 opened this issue May 11, 2024 · 6 comments

Comments

@tranquocviet226
Copy link

tranquocviet226 commented May 11, 2024

NextUI Version

2.3.6

Describe the bug

When I zoom the browser 90%, the DatePicker does not display all the days of the week
image

Your Example Website or App

https://nextui.org/docs/components/date-picker

Steps to Reproduce the Bug or Issue

  1. Go to https://nextui.org/docs/components/date-picker
  2. Zoom browser to 90%
  3. Click DatePicker

Expected behavior

As a user, I expected the calendar displays complete information

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

Copy link

linear bot commented May 11, 2024

@wingkwong
Copy link
Member

wingkwong commented May 11, 2024

Looks fine on my side. Did it happen when zooming it to 90%?

image

@wingkwong
Copy link
Member

Closing due to inactivity.

@wingkwong wingkwong closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
@ShrinidhiUpadhyaya
Copy link
Contributor

Hi, i was able to reproduce it. It happens when the zooming is at 66%, 90% and 110%. I tested it on the arc & chrome browser and also in the dev storybook and as a individual component.

DatePickerZoomIssue.mp4

According to my initial impressions , it is because of the useMeasure() hook used in the resizable-panel component used in calendar-base. The width is lesser (It ranges somewhere from 205px to 209px) for the zooming values 66%, 90% and 110%, while for the other zooming percentages the width is 256px.

@ameytessact
Copy link

Hi @ShrinidhiUpadhyaya, I'm facing the same bug that happens on Arc on Mac but only for some devices. Did you find any temporary fix for this problem in your case?

@ameytessact
Copy link

Also, when scrolling forward in months, do you'll ever see a scrollbar randomly popping up at the bottom? @tranquocviet226 @ShrinidhiUpadhyaya ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants