driftyco/ionic — pull request #2278 by SpenceDiNicolantonio (2014-09-23 21:41:46+00:00)
Title: fix(header): Start counting right width on title element rather than h1 Fixes #1356

When calculating the left/right title offsets, if the title element was not an `

` element, the `isCountingRightWidth` flag would never be set. This would cause the widths of all elements, including the title element itself, to be included in the computed left offset, subsequently placing the title out of view. To address this, I simply updated the condition that determines if the title element has been found to compare each node against the title element (`titleEl`) that had already been procured a few lines prior. Now the left/right offsets are properly computed regardless of what tag the `title` class is applied to.