mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(header): remove bottom border when footer has tabs-top
This commit is contained in:
5
js/angular/directive/headerFooterBar.js
vendored
5
js/angular/directive/headerFooterBar.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user