OverlayScrollbars icon indicating copy to clipboard operation
OverlayScrollbars copied to clipboard

flex-direction: column-reverse not working as expected

Open KoenPaas opened this issue 3 years ago • 5 comments

The scrollbar position should go to to the bottom just as the default browser behavior when using column-reverse.

What I've treid so far is add this class to the scrollbar component: <OverlayScrollbars :options="{ className: 'orderbook-asks' }" class="os-host-flexbox">

the class:

.orderbook-asks .os-content {
    display: flex !important;
    flex-direction: column-reverse;
}

Or is there a better way of implementing this reverse behavior for this package?

Thanks

KoenPaas avatar Jul 13 '22 10:07 KoenPaas

Did you find the solution? It seems like the library is not suitable for this

andreuka avatar Sep 08 '22 18:09 andreuka

@andreuka I havent looked into this yet, since I'm focusing on version 2.x, which should definitely fix this issue

KingSora avatar Sep 08 '22 19:09 KingSora

@andreuka I havent looked into this yet, since I'm focusing on version 2.x, which should definitely fix this issue

Didnt notice you have 2.0 beta already, will try to test it now :)

andreuka avatar Sep 08 '22 19:09 andreuka

Tested with 2.0-beta1 and still not possible to get that reverse behaviour like is possible with CSS provided by the topic starter.

andreuka avatar Sep 09 '22 06:09 andreuka

@andreuka please provide a minimal example on jsfiddle / stackblitz or codesandbox so I can have a deeper look into it :)

KingSora avatar Sep 09 '22 07:09 KingSora

@andreuka @KoenPaas this seems to work for me: https://stackblitz.com/edit/stackblitz-starters-hdrcme?file=src%2FApp.tsx If thats the behavior you are looking for

KingSora avatar Oct 17 '23 12:10 KingSora