Glitch resizing a div caused by simplebar
See original GitHub issueCurrent Behavior
I have an application and I want to resize a div width. The application layout has 3 column:
- 2 fixed sidebar (left and right)
- 1 main container in the middle
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 :
.simplebar-placeholder {
display: none;
}
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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Webkit bug: Overflow auto triggered after resizing a child ...
Upon clicking the inner element, I'd expect the scrollbars on the parent to disappear since the two elements now have matching sizes. This...
Read more >simplebar - npm
SimpleBar is a plugin that tries to solve a long time problem: how to get custom scrollbars for your web-app while keeping a...
Read more >Bug on width resize caused by collapse element - GSAP
I am using gsap for a nuxt project. I integrated some animations using the code found in the codepen I linked. But there...
Read more >https://web.documently.ai/APP/js/chunk-4482238c.be...
node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","webpack:///. ... node_modules/simplebar-vue/dist/simplebar-vue.esm.js" ...
Read more >How to auto-resize an image to fit a div container using CSS?
Example 1: This example describes the auto-resize image fit to div container. This example does not contain object-fit property. html. html ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Until I figure out a solution for this, best workaround would be to force
width: auto
onplaceholder
:.simplebar-placeholder { width: auto!important; }
.Should be fixed in
simplebar@4.0.0-alpha.0
!