Files
ionic-framework/js/views/headerBarView.js
Max Lynch 6ab1f49688 Fixed #64 and fixed sub view controllers and tabs
Moved tabs to be absolute not fixed so they can easily
be placed inside of containers
2013-11-08 18:09:48 -06:00

28 lines
554 B
JavaScript

(function(ionic) {
'use strict';
ionic.views.HeaderBar = ionic.views.View.inherit({
initialize: function(opts) {
this.el = opts.el;
this._titleEl = this.el.querySelector('.title');
},
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);