fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Overlay component add bodyScroll props

Open x73x63 opened this issue 7 years ago • 5 comments

Describe the feature that you would like added I need to allow the parent component to set whether to display the body scrollbar

What component or utility would this be added to Panel Modal Dialog

x73x63 avatar Jul 12 '19 03:07 x73x63

@x73x63, seems like you already have an issue open regarding this and there is a PR that investigates the possibility to address it (both linked by you in the issue description). Could you please continue the discussion on that thread and work along with 2 developers that invested time in trying to help you. Opening a duplicate issue will not expedite a solution. Thanks.

Will soft close the issue due to it being a duplicate and the other issue having more info along with a PR trying to solve it.

Vitalius1 avatar Jul 12 '19 04:07 Vitalius1

@khmakoto @KevinTCoughlin FYI

Vitalius1 avatar Jul 12 '19 04:07 Vitalius1

@JasonGore I need your help Add bodyScroll props allow the parent component(Panel Modal Dialog) to set whether to display the body scrollbar

IOverlayProps add

  bodyScroll?: boolean;

change Overlay.base.tsx

export class OverlayBase extends BaseComponent<IOverlayProps, {}> {
    public static defaultProps: IOverlayProps = {
        bodyScroll: true,
    };

  public componentDidMount(): void {
    if(this.props.bodyScroll){
        disableBodyScroll();
    }
  }

  ...
}

x73x63 avatar Aug 16 '19 18:08 x73x63

@x73x63 We have this currently labeled as a feature request. Do you want to take a stab at a PR?

JasonGore avatar Aug 16 '19 18:08 JasonGore

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar Apr 26 '21 14:04 msft-fluent-ui-bot