This commit is contained in:
Brian Vaughn
2019-03-03 12:54:31 -08:00
parent 05df0f46c9
commit a42c2fba96
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -250,8 +250,10 @@ export default function createGridComponent({
// The scrollbar size should be considered when scrolling an item into view,
// to ensure it's fully visible.
// But we only need to account for its size when it's actually visible.
const horizontalScrollbarSize = estimatedTotalWidth > width ? scrollbarSize : 0;
const verticalScrollbarSize = estimatedTotalHeight > height ? scrollbarSize : 0;
const horizontalScrollbarSize =
estimatedTotalWidth > width ? scrollbarSize : 0;
const verticalScrollbarSize =
estimatedTotalHeight > height ? scrollbarSize : 0;
this.scrollTo({
scrollLeft: getOffsetForColumnAndAlignment(
@@ -39,7 +39,7 @@ export default function() {
itemData="صف"
itemSize={35}
width={300}
style={{ direction: "rtl" }}
style={{ direction: 'rtl' }}
>
{Item}
</FixedSizeList>
@@ -61,7 +61,7 @@ export default function() {
itemData="عمود"
itemSize={100}
width={300}
style={{ direction: "rtl" }}
style={{ direction: 'rtl' }}
>
{Item}
</FixedSizeList>