Skip to content

ScrollablePane, DetailsList and Sticky Header: blank space inserted and sticky obscures 1st item #4234

Description

@aappddeevv

v5.62.

If you modify the ScrollablePane DetailsList Example to remove all non DetailsList sticky headers, you find that there is inserted extra space into the ScrollPane that throws scrolling off. There is also an issue where the DetailsList sticky details list header (per the example) is sitting on top of the first DetailsList item obscuring it, but this actually only happens under some conditions I cannot determine yet. I'm not sure these two issues are related.

 return (
      <ScrollablePane>
{ false &&        <Sticky>{ selectionDetails }</Sticky> }
{ false &&
        <TextField
          label='Filter by name:'
          // tslint:disable-next-line:jsx-no-lambda
          onChanged={ text => this.setState({ items: text ? _items.filter(i => i.name.toLowerCase().indexOf(text) > -1) : _items }) }
        />
}
{ false &&
        <Sticky>
          <h1 style={ { margin: '0px' } }>Item List</h1>
        </Sticky>
}
        <MarqueeSelection selection={ this._selection }>
          <DetailsList
...

Removing these "test" stickies" resulted in a lingering div:
scrollablelist extra space
scrollable pane html

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions