-
Notifications
You must be signed in to change notification settings - Fork 156
fix(vhelper): fix padding only when vhelper scrollbar is visible #15972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
projects/igniteui-angular/src/lib/directives/for-of/base.helper.component.ts
Show resolved
Hide resolved
|
|
||
| private toggleClass(element: HTMLElement, className: string, add: boolean): void { | ||
| if (!element) return; | ||
| add ? this.renderer.addClass(element, className) : this.renderer.removeClass(element, className); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick, but I'd use a regular control flow "if / else" statement here instead of a ternary operator.
| private renderer: Renderer2, | ||
| @Inject(PLATFORM_ID) private platformId: Object, | ||
| private ngZone: NgZone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to use the inject API so you don't have to also modify all classes that extend the base class.
Closes #15965
Additional information (check all that apply):
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)