Skip to content

Commit

Permalink
fix(md-tabs): remove fixed when detached
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Nov 20, 2016
1 parent 1f6d0b2 commit 823cc38
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/tabs/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { AttributeManager } from '../common/attributeManager';
@inject(Element, TaskQueue)
export class MdTabs {
@bindable() fixed = false;
@bindable() transparent = false;

constructor(element, taskQueue) {
this.element = element;
Expand Down Expand Up @@ -55,7 +56,15 @@ export class MdTabs {
if (newValue) {
this.attributeManager.addClasses('tabs-fixed-width');
} else {
this.attributeManager.addClasses('tabs-fixed-width');
this.attributeManager.removeClasses('tabs-fixed-width');
}
}

transparentChanged(newValue) {
if (newValue) {
this.attributeManager.addClasses('tabs-transparent');
} else {
this.attributeManager.removeClasses('tabs-transparent');
}
}

Expand Down

0 comments on commit 823cc38

Please sign in to comment.