React-custom-scrollbars: Expose X/Y overflow options as property.

Created on 16 Aug 2017  路  3Comments  路  Source: malte-wessel/react-custom-scrollbars

It looks like the component sets overflow: scroll as it's default option, with no way to lock it down to either overflow-x or overflow-y.

Request

Expose a property called direction that takes the value:

  • x
  • y
  • xy (default)

Which correspondingly sets the appropriate overflow style:

  • x: overflow-x: scroll, overflow-y: none
  • y: overflow-x: none, overflow-y: scroll
  • xy: overflow: scroll

Use-Case

Sometimes content will nudge out slightly and causes horizontal scrollbars to show, especially between Windows and OSX. My typical scenario is that the design almost never calls for horizontal scrolling, and so the aim would be to never allow the browser to expose horizontal scrollbars.

Most helpful comment

+1 for "the design almost never calls for horizontal scrolling".

All 3 comments

+1

+1 for "the design almost never calls for horizontal scrolling".

Is there a temporary solution for this? An elegant one I mean :) I want to implement something along overflow-x: hidden; overflow: auto;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elinake picture elinake  路  4Comments

bunkat picture bunkat  路  5Comments

magnetronnie picture magnetronnie  路  3Comments

umer4ik picture umer4ik  路  4Comments

leofle picture leofle  路  4Comments