Skip to content

Commit 8423d84

Browse files
authored
Merge pull request #6094 from IgniteUI/amarinov/setOffset_docs
chore(overlay): Updating the description of setOffset method
2 parents fdb261d + 7e6053d commit 8423d84

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ All notable changes for each version of this project will be documented in this
1818

1919
### New Features
2020
- `IgxOverlayService`:
21-
- `setOffset` method added. It repositions the content in the horizontal and vertical directions.
21+
- `setOffset` method added. It offsets the content along the corresponding axis by the provided amount.
2222
- `IgxToggleDirective`:
23-
- `setOffset` method added. It repositions the content in the horizontal and vertical directions.
23+
- `setOffset` method added. It offsets the content along the corresponding axis by the provided amount.
2424

2525
## 8.2.6
2626

projects/igniteui-angular/src/lib/directives/toggle/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ handlers when the toggle is opened and respectively closed.
4949
| `close` | --- | `void` | Closes the toggle. |
5050
| `toggle` | overlaySettings?: `OverlaySettings` | `void` | Closes the toggle. |
5151
| `reposition` | --- | `void` | Repositions the toggle. |
52-
| `setOffset` | Repositions the content in the horizontal and/or vertical directions. |deltaX, deltaY |
52+
| `setOffset` | Offsets the content along the corresponding axis by the provided amount. |deltaX, deltaY |
5353

5454

5555

projects/igniteui-angular/src/lib/directives/toggle/toggle.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
277277
}
278278

279279
/**
280-
* Repositions the content in the horizontal and/or vertical directions.
280+
* Offsets the content along the corresponding axis by the provided amount
281281
*/
282282
setOffset(deltaX: number, deltaY: number) {
283283
this.overlayService.setOffset(this._overlayId, deltaX, deltaY);

projects/igniteui-angular/src/lib/services/overlay/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ this.overlay.show(component, overlaySettings);
9696
|hide | Remove the provided native element of for the component with provided id |id |
9797
|hideAll | Remove the all native elements and hides the overlay |- |
9898
|reposition | Repositions the native element of the component with provided id |id |
99-
|setOffset | Repositions the content in the horizontal and/or vertical directions. |id, deltaX, deltaY |
99+
|setOffset | Offsets the content along the corresponding axis by the provided amount |id, deltaX, deltaY |
100100

101101
###### IPositionStrategy
102102

projects/igniteui-angular/src/lib/services/overlay/overlay.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ export class IgxOverlayService implements OnDestroy {
246246
}
247247

248248
/**
249-
* Repositions the content in the horizontal and/or vertical directions.
249+
* Offsets the content along the corresponding axis by the provided amount
250250
* ```typescript
251-
* this.overlay.setOffset(id, x, y);
251+
* this.overlay.setOffset(id, deltaX, deltaY);
252252
* ```
253253
*/
254254
setOffset(id: string, deltaX: number, deltaY: number) {

0 commit comments

Comments
 (0)