Skip to content

Commit b9fc876

Browse files
committed
chore(*): add requested changes
1 parent 5eb03b6 commit b9fc876

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Ignite UI for Angular Change Log
22

33
All notable changes for each version of this project will be documented in this file.
4-
## 13.1.0
5-
6-
### RTL Support
7-
- `IgxTabs` have full right-to-left (RTL) support.
8-
94
## 13.1.0
105
### New Features
116
- `igxTooltipTarget` directive now allows specifying a plain text tooltip without adding an additional DOM element decorated with the `igxTooltip` directive. This is achieved via the newly introduced `tooltip` string input.
@@ -14,6 +9,8 @@ All notable changes for each version of this project will be documented in this
149
info
1510
</button>
1611
```
12+
- `IgxTabs` have full right-to-left (RTL) support.
13+
1714
### General
1815

1916
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`

projects/igniteui-angular/src/lib/tabs/tabs/tabs.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class IgxTabsComponent extends IgxTabsDirective implements AfterViewInit,
254254
const viewPortWidth = this.viewPort.nativeElement.offsetWidth;
255255

256256
this.offset = (scrollNext) ? element.offsetWidth + this.getElementOffset(element) - viewPortWidth : this.getElementOffset(element);
257-
this.viewPort.nativeElement.scrollLeft = this.getDirection(this.offset);
257+
this.viewPort.nativeElement.scrollLeft = this.getOffset(this.offset);
258258
this.updateScrollButtons();
259259
}
260260

@@ -326,7 +326,7 @@ export class IgxTabsComponent extends IgxTabsDirective implements AfterViewInit,
326326
return itemsContainerWidth;
327327
}
328328

329-
private getDirection(offset: number): number {
329+
private getOffset(offset: number): number {
330330
return this.dir.rtl ? -offset : offset;
331331
}
332332

0 commit comments

Comments
 (0)