forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues in scrollable pane (microsoft#4055)
* Fix infinite recursion in scrollable pane * Rush change * Fix root cause of infinite loop * Fixed issue with sticky headers not being added to stickyAbove * Remove ref for stickyContainer * Fix bad rebase
- Loading branch information
Showing
6 changed files
with
51 additions
and
48 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
common/changes/office-ui-fabric-react/maxlus-stickyContainer_2018-02-21-19-45.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "office-ui-fabric-react", | ||
"comment": "Fix infinite recursion in scrollable pane", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "office-ui-fabric-react", | ||
"email": "maxlus@microsoft.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/office-ui-fabric-react/src/components/ScrollablePane/ScrollablePane.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@import '../../common/common'; | ||
|
||
.root { | ||
overflow-y: auto; | ||
max-height: inherit; | ||
height: inherit; | ||
-webkit-overflow-scrolling: touch; | ||
} | ||
|
||
.stickyAbove, | ||
.stickyBelow { | ||
position: absolute; | ||
pointer-events: auto; | ||
width: 100%; | ||
z-index: 1; | ||
} | ||
|
||
.stickyAbove { | ||
top: 0; | ||
|
||
@include high-contrast { | ||
border-bottom: 1px solid WindowText; | ||
} | ||
} | ||
|
||
.stickyBelow { | ||
bottom: 0; | ||
|
||
@include high-contrast { | ||
border-top: 1px solid WindowText; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters