Skip to content

Commit ade143e

Browse files
committed
fix(bar): properly align titles if switching to view with no buttons
Closes #1242
1 parent e264cc9 commit ade143e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: js/views/headerBarView.js

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858

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

61+
//Reset left and right before setting again
62+
titleEl.style.left = titleEl.style.right = '';
63+
6164
// Size and align the header titleEl based on the sizes of the left and
6265
// right children, and the desired alignment mode
6366
if(align == 'center') {

0 commit comments

Comments
 (0)