diff --git a/js/views/headerBarView.js b/js/views/headerBarView.js index 9da4b69131d..c6ca92a5538 100644 --- a/js/views/headerBarView.js +++ b/js/views/headerBarView.js @@ -43,7 +43,10 @@ childSize = null; if(c.nodeType == 3) { - childSize = ionic.DomUtil.getTextBounds(c).width; + var bounds = ionic.DomUtil.getTextBounds(c); + if(bounds) { + childSize = bounds.width; + } } else if(c.nodeType == 1) { childSize = c.offsetWidth; }