Skip to content

Scrolling inside modal is working but #252

@c0debreaker

Description

@c0debreaker

I have this css customStyle which allows me to scroll inside the modal. However, is it possible to prevent other parts inside the modal to not scroll? Please take a look at this image. I want the area with the black border to be fixed but the area in red should be scrollable - http://i.imgur.com/1vVXUHe.jpg

I'm thinking that maybe I can just add className for each section then remove the overflow in the content property and I'm guessing it should work. What do you think?

const customStyles = {
  content : {
    top                   : '50%',
    left                  : '50%',
    right                 : 'auto',
    bottom                : 'auto',
    marginRight           : '-50%',
    transform             : 'translate(-50%, -50%)',
    width                 : '70%',
    height                : '350px',
    overlfow              : 'scroll'
  },
  overlay: {
    zIndex: 200
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions