fix(header): remove bottom border when footer has tabs-top

This commit is contained in:
Perry Govier
2014-12-09 13:24:27 -06:00
parent 49c861df5b
commit 11e1bab0e0

View File

@@ -118,13 +118,14 @@ function tapScrollToTopDirective() {
}
function headerFooterBarDirective(isHeader) {
return [function() {
return ['$document',function($document) {
return {
restrict: 'E',
controller: '$ionicHeaderBar',
compile: function(tElement, $attr) {
tElement.addClass(isHeader ? 'bar bar-header' : 'bar bar-footer');
if (tElement[0].parentNode.querySelector('.tabs-top')) tElement.addClass('has-tabs-top');
// android style tabs? if so, remove bottom border for seamless display
if ($document[0].getElementsByClassName('tabs-top')) tElement.addClass('has-tabs-top');
return { pre: prelink };
function prelink($scope, $element, $attr, ctrl) {