Skip to content

[Bug]: Calendar position flip-flops from above to below on different months #1550

@benjamin-brady

Description

@benjamin-brady

Reproduction

  1. Go to https://www.shadcn-vue.com/docs/components/calendar and open the birth date picker
  2. Click the next icon through some different months. Observe that the calendar is sometimes above the trigger button and sometimes below. the scroll position has to be set to the popover is near the bottom of the page.

Describe the bug

On the docs site, in different months the calendar popup shows in different positions relative to the trigger button. I think the calendar needs to have a constant height between months. October seems to be taller than september.

Image Image

System Info

Chrome, docs site.

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions