diff --git a/js/views/cfi_navigation_logic.js b/js/views/cfi_navigation_logic.js index b6e7e21ff..6b0dddb84 100644 --- a/js/views/cfi_navigation_logic.js +++ b/js/views/cfi_navigation_logic.js @@ -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; }