Skip to content

Commit

Permalink
Always apply offsets when normalizing rectangle, had been skipping th…
Browse files Browse the repository at this point in the history
…is when called from ScrollView due to leftOffset=0.
  • Loading branch information
Warren Isfan committed Sep 14, 2017
1 parent 426f313 commit 0846bb9
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 @@ -509,9 +509,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 0846bb9

Please sign in to comment.