-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrollablePane: Optimization on how component works #4491
ScrollablePane: Optimization on how component works #4491
Conversation
…instead of root. Need to fix sticky bottom behavior still.
… setState once. Need to fix DetailsList behavior
… on StickyTop and StickyBottom after mounting/unmounting sticky.
…lsList example. Remove unused componentDidUpdate in Sticky.
…Top or stickyBottom
… stickyTopStyle and stickyBottomStyle
…dden for Top/Bottom sticky
… if props/state changes (preventing excessive setState with updateStickyRefHeights). Change this.root to this.contentContainer for check for initialScrollPosition prop. Move logic for appending child to this.stickyAbove/Below into sortSticky.
…. Fix _removeStickyFromContainers not removing stickies properly.
…hts. Change getScrollPosition to check for contentContainer.scrollTop
…ion and set distances once ScrollablePane has mounted
…c-react into edwl/fixScrollablePaneBehavior # Conflicts: # packages/office-ui-fabric-react/src/components/ScrollablePane/ScrollablePane.base.tsx # packages/office-ui-fabric-react/src/components/Sticky/Sticky.tsx
…sing duplicate props.children to placeholder divs
…c-react into edwl/fixScrollablePaneBehavior # Conflicts: # packages/office-ui-fabric-react/src/components/ScrollablePane/ScrollablePane.base.tsx # packages/office-ui-fabric-react/src/components/ScrollablePane/examples/ScrollablePane.Default.Example.tsx # packages/office-ui-fabric-react/src/components/Sticky/Sticky.tsx
…c-react into edwl/fixScrollablePaneBehavior # Conflicts: # packages/office-ui-fabric-react/src/components/ScrollablePane/ScrollablePane.base.tsx
@ThomasMichon @MaxLustig can you re-review at your earliest convenience please? |
…c-react into edwl/fixScrollablePaneBehavior # Conflicts: # packages/office-ui-fabric-react/src/components/ScrollablePane/ScrollablePane.styles.ts
… stickytop/bottom. Add width on sticky component so element doesn't extend past to scrollbar.
zIndex: ZIndexes.ScrollablePane | ||
}; | ||
|
||
return ({ | ||
root: [ | ||
classNames.root, | ||
{ | ||
WebkitOverflowScrolling: 'touch', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a lowercase w
?
overflowY: 'hidden', | ||
overflowX: 'auto' | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of the maxHeightStyles
altogether now?
…StickyPlaceholder to use position absolute instead of display block/none.
Pull request checklist
$ npm run change
Description of changes
position: absolute
to occupy parent spaceFocus areas to test
(optional)