Skip to content

Commit

Permalink
fix(AnalyticalTable): remove double scrollbars on windows (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbersch authored Jan 22, 2020
1 parent bdf2c95 commit b269da3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const styles = ({ parameters }: JSSTheme) => ({
tbody: {
position: 'relative',
zIndex: 0,
overflowX: 'auto',
backgroundColor: parameters.sapUiListBackground
},
alternateRowColor: {
Expand Down Expand Up @@ -99,6 +98,10 @@ const styles = ({ parameters }: JSSTheme) => ({
whiteSpace: 'nowrap',
alignItems: 'center'
},
virtualTableBody: {
overflowX: 'hidden !important',
overflowY: 'auto !important'
},
noDataContainer: {
display: 'flex',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ exports[`AnalyticalTable Alternate Row Color 1`] = `
</div>
</header>
<div
class="AnalyticalTable--virtualTableBody-"
style="position: relative; height: 220px; width: 240px; overflow: auto; will-change: transform; direction: ltr;"
>
<div
Expand Down Expand Up @@ -769,6 +770,7 @@ exports[`AnalyticalTable Loading - Loader 1`] = `
</div>
</header>
<div
class="AnalyticalTable--virtualTableBody-"
style="position: relative; height: 220px; width: 240px; overflow: auto; will-change: transform; direction: ltr;"
>
<div
Expand Down Expand Up @@ -1854,6 +1856,7 @@ exports[`AnalyticalTable Tree Table 1`] = `
</div>
</header>
<div
class="AnalyticalTable--virtualTableBody-"
style="position: relative; height: 220px; width: 240px; overflow: auto; will-change: transform; direction: ltr;"
>
<div
Expand Down Expand Up @@ -2356,6 +2359,7 @@ exports[`AnalyticalTable custom row height 1`] = `
</div>
</header>
<div
class="AnalyticalTable--virtualTableBody-"
style="position: relative; height: 300px; width: 240px; overflow: auto; will-change: transform; direction: ltr;"
>
<div
Expand Down Expand Up @@ -3135,6 +3139,7 @@ exports[`AnalyticalTable test Asc desc 1`] = `
</div>
</header>
<div
class="AnalyticalTable--virtualTableBody-"
style="position: relative; height: 220px; width: 240px; overflow: auto; will-change: transform; direction: ltr;"
>
<div
Expand Down Expand Up @@ -3608,6 +3613,7 @@ exports[`AnalyticalTable test drag and drop of a draggable column 1`] = `
</div>
</header>
<div
class="AnalyticalTable--virtualTableBody-"
style="position: relative; height: 220px; width: 240px; overflow: auto; will-change: transform; direction: ltr;"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const VirtualTableBody = (props) => {

return (
<FixedSizeList
className={classes.virtualTableBody}
ref={reactWindowRef}
height={tableBodyHeight}
width={totalColumnsWidth}
Expand Down

0 comments on commit b269da3

Please sign in to comment.