filename updates

This commit is contained in:
Adam Bradley
2013-10-01 09:57:49 -05:00
parent c7b96cb52d
commit 7386f3f468
6 changed files with 40 additions and 32 deletions

28
js/views/headerBarView.js Normal file
View File

@ -0,0 +1,28 @@
(function(ionic) {
ionic.views.HeaderBar = function(opts) {
this.el = opts.el;
this._titleEl = this.el.querySelector('.title');
};
ionic.views.HeaderBar.prototype = {
resizeTitle: function() {
var e, j, i,
title,
titleWidth,
children = this.el.children;
for(i = 0, j = children.length; i < j; i++) {
e = children[i];
if(/h\d/.test(e.nodeName.toLowerCase())) {
title = e;
}
}
titleWidth = title.offsetWidth;
}
};
})(ionic);