fix(bar): properly align titles if switching to view with no buttons

Closes #1242
This commit is contained in:
Andy Joslin
2014-05-02 12:13:09 -06:00
parent e264cc98ee
commit ade143ed35

View File

@@ -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') {