Skip to content

Commit

Permalink
tab: fix tabContents position
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Dec 9, 2018
1 parent efc10d1 commit 210b3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/tabs/tabs.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class LyTabs extends LyTabsMixinBase implements OnChanges, OnInit, AfterV
this._updateIndicator(this._selectedTab, this._selectedBeforeTab);

this._markForCheck();
const position = this._flexDirection === 'column' ? 'X' : 'Y';
const position = this._flexDirection === 'column' ? 'Y' : 'X';
this.renderer.setStyle(this.tabContents.nativeElement, 'transform', `translate${position}(${this._selectedIndex * -100}%)`);
}
}
Expand Down

0 comments on commit 210b3b4

Please sign in to comment.