projects/swimlane/ngx-datatable/src/lib/services/dimensions-helper.service.ts
import { Inject, Injectable } from '@angular/core';
/**
* Gets the width of the scrollbar. Nesc for windows
* http://stackoverflow.com/a/13382873/888165
*/
@Injectable()
export class DimensionsHelper {
getDimensions(element: Element): ClientRect {
return element.getBoundingClientRect();
}
}