mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
More header bar hacking stuff
This commit is contained in:
16
dist/ionic.js
vendored
16
dist/ionic.js
vendored
@ -1702,13 +1702,21 @@ ionic.views.HeaderBar = function(opts) {
|
||||
|
||||
ionic.views.NavBar.prototype = {
|
||||
resizeTitle: function() {
|
||||
var e,
|
||||
children = this.el.children,
|
||||
index = Array.prototype.indexOf.call(children, this.el);
|
||||
var e;
|
||||
var j;
|
||||
var children = this.el.children;
|
||||
|
||||
for(var i = 0; i < index; i++) {
|
||||
var title;
|
||||
var titleWidth;
|
||||
|
||||
for(var i = 0; j = children.length; i < j; i++) {
|
||||
e = children[i];
|
||||
if(/h\d/.test(e.nodeName.toLowerCase())) {
|
||||
title = e;
|
||||
}
|
||||
}
|
||||
|
||||
titleWidth = title.offsetWidth;
|
||||
}
|
||||
};
|
||||
})(window.ionic);
|
||||
|
||||
Reference in New Issue
Block a user