Skip to content

Commit

Permalink
Merge pull request #406 from kivuto/feature/fix-normalize-rectangle
Browse files Browse the repository at this point in the history
Fix rectangle visibility check in cfi navigation logic for scroll view
  • Loading branch information
danielweck authored Oct 3, 2017
2 parents a463b50 + 0846bb9 commit e9a676e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/views/cfi_navigation_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,9 @@ var CfiNavigationLogic = function (options) {
width: textRect.right - textRect.left,
height: textRect.bottom - textRect.top
};
if (leftOffset && topOffset) {
offsetRectangle(plainRectObject, leftOffset, topOffset);
}
leftOffset = leftOffset || 0;
topOffset = topOffset || 0;
offsetRectangle(plainRectObject, leftOffset, topOffset);
return plainRectObject;
}

Expand Down

0 comments on commit e9a676e

Please sign in to comment.