react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

TabbedForm overflows viewport when there are a lot of FormTabs

Open andressscamacho opened this issue 8 years ago • 1 comments

What you were expecting: When you add a lot of FormTabs in a TabbedForm inside a Edit, I expect a behavior like this: Material UI Scrollable Tabs

What happened instead:

It overflows the viewport in an annoying way

Steps to reproduce: I reproduced it in CodeSandbox, I recommend to open in a new window

Related code: CodeSandbox (https://codesandbox.io/s/0p6v43wnl)

  • React-admin version: 2.1.4
  • Last version that did not exhibit the issue (if applicable):
  • React version: 16.3.2
  • Browser: Chrome
  • Stack trace (in case of a JS error):

andressscamacho avatar Jul 28 '18 06:07 andressscamacho

We won't include the scrollable behavior of material-ui for Tabs and fix the center section width because it has unwanted effects of on the List pages too. We decided to fallback to standard window scrolling for all pages.

If you really want this, you'll have to make your own layout which will disable overflow on the content section and your own TabbedForm or TabbedShowLayout to set the scrollable prop.

djhi avatar Aug 28 '18 14:08 djhi