-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
Glitch resizing a div caused by simplebar #253
Comments
Hi Michael, |
I installed this scrollbar plugin today and i can get a similar with the placeholder div. This is how is looks placeholder enabled / showen: This is how is looks placeholder disabled / hidden: As you can see when the placeholder div is showen, i see the normal sidebar too. //Edit: I done some more research. First i used the latest Version (i think 3?) there i got the issue. With Version 2.6.1 everything is fine but as i can see 2.6.1 dont contains "simplebar-placeholder" div. |
It's a simple transition. I toggle the expand class on my sidebar: aside {
flex: 0 0 auto;
width: 260px;
&.expand {
width: 520px;
}
-webkit-transition: width .25s;
-moz-transition: width .25s;
-ms-transition: width .25s;
-o-transition: width .25s;
transition: width .25s;
}
Edit: just to clarify, I want to create a similar layout to twitch (and twitch uses your plugin by the way, that's how I found out about this package). So I have 2 fixed size sidebar in desktop and 1 main container. |
I always encourage to make a minimum example that highlights the bug, fixes could take forever if author(s) have to reproduce every bug themselves based on screencast or description. @Grsmto This example should highlight the problem. Im not sure what to make out of this bug because center placeholder gets resized/recalculated only if it has |
@Spegeli your issue is unrelated to this one. You probably just have some CSS clashing with the Simplebar element. Try removing any CSS you applied that might break the plugin. @adjourn thanks for the demo! I'll take a look, I might have an idea how to fix this. |
@Grsmto Are you sure? It looks like video shows sidebar placeholder styles but the problem (as I see it) is that center placeholder doesn't resize. Sidebars have fixed
But I don't know, maybe I misunderstood it. That's why demo would have been nice. Good luck! |
@adjourn yeah you're right actually! Thanks for your help. |
Until I figure out a solution for this, best workaround would be to force |
Should be fixed in |
Current Behavior
I have an application and I want to resize a div width. The application layout has 3 column:
There is 1 of my sidebar that I want to resize (view the screecast below).
Without the plugin enabled, all is perfect. However, when I activated simplebar, there was a weird behaviour where the sidebar would expand offscreen.
Expected behavior
I want the div the resize as expected
Reproducible example
Since it's a pretty big app, it's easier for me to share the problem via screencast
Suggested solution(s)
So after playing with different options, I figured out the following solution :
Additional context
Since I installed the plugin today, I didn't feel confortable issuing a pull request since maybe adding display: none will break other features.
The text was updated successfully, but these errors were encountered: