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

Scroll does not hide after decreasing container height #29

Open
KatyaV97 opened this issue Apr 16, 2024 · 6 comments
Open

Scroll does not hide after decreasing container height #29

KatyaV97 opened this issue Apr 16, 2024 · 6 comments

Comments

@KatyaV97
Copy link

KatyaV97 commented Apr 16, 2024

I set the property to class ps:
max-height: 130px
When the height of the inner container exceeds 130px a scroll appears.
But when the height of the inner container dynamically decreases and becomes less than 130px, the scroll does not disappear.
Scroll disappears only after scrolling the mouse wheel, although there is no scrolling

@vishnu-exerp
Copy link

@KatyaV97 I have the same issue, did you find any solutions for this ?

@florianjea
Copy link

Did you try to call ps.update()?

@vishnu-exerp
Copy link

@florianjea Nop, i just added a key field to perfect scrollbar component which affects the container height.
So its fixed now :)

like this

<perfect-scrollbar
        :options="{
          swipeEasing: true,
          wheelPropagation: true,
        }"
        :key="searchText"
        class="flex-1 text-sm"
      >

so when the searchText changes and update the results it updates the scroll view now.

@florianjea
Copy link

florianjea commented Jun 20, 2024

@florianjea Nop, i just added a key field to perfect scrollbar component which affects the container height. So its fixed now :)

like this

<perfect-scrollbar
        :options="{
          swipeEasing: true,
          wheelPropagation: true,
        }"
        :key="searchText"
        class="flex-1 text-sm"
      >

so when the searchText changes and update the results it updates the scroll view now.

searchText is a ref of the container?

@vishnu-exerp
Copy link

vishnu-exerp commented Jun 20, 2024

@florianjea Nop, searchText is the v-modal of the search input.
So it will change when i try to filter the list by name.

@KatyaV97
Copy link
Author

@vishnu-exerp thank you! It helped me

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

3 participants