Skip to content

Commit

Permalink
fix(bar): properly align titles if switching to view with no buttons
Browse files Browse the repository at this point in the history
Closes #1242
  • Loading branch information
ajoslin committed May 2, 2014
1 parent e264cc9 commit ade143e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/views/headerBarView.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@

var margin = Math.max(leftWidth, rightWidth) + 10;

//Reset left and right before setting again
titleEl.style.left = titleEl.style.right = '';

// Size and align the header titleEl based on the sizes of the left and
// right children, and the desired alignment mode
if(align == 'center') {
Expand Down

0 comments on commit ade143e

Please sign in to comment.