#714·simplebar

Placeholder keeps growing in width

Author: InfradigitaalCreated Jan 26, 2025Updated May 23, 2025

Describe the bug using simplebar - v6.2.7 (core)

I created a rem-based zoom of my content. Basically, I have a list which has a scroll. Whenever I shrink the fontsize, ironically enough, the placeholder grows in width. It keeps growing well beyond the max-width of the parent container.

This issue seems to be similar to issue #253

To Reproduce Steps to reproduce the behavior:

  1. Create a div with simplebar, width based on REM
  2. Fill it with some lines of text
  3. Change the document's base font size (from 32px to 16px for example)
  4. See error

Expected behavior For the div to resize properly

Additional context I have temporarily fixed it by using overflow-x: hidden on the element in question, though I'm not sure I won't need it again in the future.