mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(bar): properly align titles if switching to view with no buttons
Closes #1242
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user