diff --git a/js/views/cfi_navigation_logic.js b/js/views/cfi_navigation_logic.js index 9faded30b..63643afd1 100644 --- a/js/views/cfi_navigation_logic.js +++ b/js/views/cfi_navigation_logic.js @@ -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; }