question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Glitch resizing a div caused by simplebar

See original GitHub issue

Current 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Grsmtocommented, Jan 15, 2019

Until I figure out a solution for this, best workaround would be to force width: auto on placeholder : .simplebar-placeholder { width: auto!important; }.

0reactions
Grsmtocommented, Apr 12, 2019

Should be fixed in simplebar@4.0.0-alpha.0!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found