Skip to content

Commit

Permalink
fix(grid): fix VirtualTable with non-standard browser zooming (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvet authored Jul 16, 2018
1 parent adc2d19 commit 412ba38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export class VirtualTableLayout extends React.PureComponent {
// NOTE: prevent iOS to flicker in bounces
if (node.scrollTop < 0 ||
node.scrollLeft < 0 ||
node.scrollLeft + node.clientWidth > node.scrollWidth ||
node.scrollTop + node.clientHeight > node.scrollHeight) {
node.scrollLeft + node.clientWidth > Math.max(node.scrollWidth, node.clientWidth) ||
node.scrollTop + node.clientHeight > Math.max(node.scrollHeight, node.clientHeight)) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export const VirtualTableLayout = {
// NOTE: prevent iOS to flicker in bounces
if (node.scrollTop < 0 ||
node.scrollLeft < 0 ||
node.scrollLeft + node.clientWidth > node.scrollWidth ||
node.scrollTop + node.clientHeight > node.scrollHeight) {
node.scrollLeft + node.clientWidth > Math.max(node.scrollWidth, node.clientWidth) ||
node.scrollTop + node.clientHeight > Math.max(node.scrollHeight, node.clientHeight)) {
return;
}

Expand Down

0 comments on commit 412ba38

Please sign in to comment.