Skip to content

Spacing issues with fixed elements when used while having a open dialog #8710

@thupi

Description

@thupi
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Their should be a method to compensate for the dialogs bahavior when it opens. The dialog remove the scroll bar when it opens. When the site contains fixed elements that causes the element to move slightly.

Current Behavior

I was not able to find a method to solve this issue with the current possibilities.

One way to solve the problem is to stop the removal of the scrollbar. This approach requires a way to diable the compensation in element like the AppBar etc.

The other method could be some kind of Component og props that allows the fixed element to compensate in the same way as the AppBar.

Steps to Reproduce (for bugs)

  1. Go to https://codesandbox.io/s/znwvvwq404
  2. Observe the face icon and the "right" text in the red box.
  3. Click the "Open Dialog" button
  4. Observe the position of the face icon and the "right" text in the red box.

Context

I tried to have fixed tabs right below the AppBar. In order to do that i wrapped the tabs in a div and fixed it. After that i used flexbox to center the Tabs.

Your Environment

Tech Version
Material-UI 1.0.0-beta.16
React 15.6.1
browser Google Chrome Version 61.0.3163.100

Metadata

Metadata

Labels

docsImprovements or additions to the documentation.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions