toolbar fixes

This commit is contained in:
Adam Bradley
2015-07-29 21:09:47 -05:00
parent e92ee2f10d
commit 4ad69d4023
4 changed files with 14 additions and 3 deletions

View File

@ -15,12 +15,16 @@ $navbar-ios-height: 4.4rem !default;
padding: 0; padding: 0;
margin: 0 4px; margin: 0 4px;
min-height: 3.2rem;
line-height: 1;
order: map-get($toolbar-order-ios, 'back-button'); order: map-get($toolbar-order-ios, 'back-button');
overflow: inherit; overflow: inherit;
} }
.back-button-icon { .back-button-icon {
padding-right: 8px; font-size: 3.2rem;
padding-right: 7px;
} }
} }

View File

@ -21,7 +21,7 @@
display: none; display: none;
&.show-back-button { &.show-back-button {
display: inline-flex; display: flex;
} }
} }

View File

@ -35,6 +35,7 @@ $toolbar-ios-title-font-size: 1.7rem !default;
font-size: $toolbar-ios-title-font-size; font-size: $toolbar-ios-title-font-size;
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
margin-top: -2px;
} }
.back-button { .back-button {

View File

@ -104,8 +104,14 @@ export class Toolbar extends ToolbarBase {
} }
onIonInit() { onIonInit() {
// TODO: THIS IS HORRIBLE, FIX
setTimeout(() => {
this.alignTitle();
setTimeout(() => { setTimeout(() => {
this.alignTitle() this.alignTitle()
}, 64);
}, 32); }, 32);
} }