@tetacom/ng-components 1.0.61 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/component/table/head-cell/head-cell.component.mjs +3 -9
- package/fesm2015/tetacom-ng-components.mjs +2 -8
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +2 -8
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/button.scss +3 -0
|
@@ -8953,13 +8953,6 @@ class HeadCellComponent {
|
|
|
8953
8953
|
ngOnDestroy() {
|
|
8954
8954
|
this._alive = false;
|
|
8955
8955
|
}
|
|
8956
|
-
// autosizeColumn() {
|
|
8957
|
-
// this._svc.autosizeColumn(this.column, this._elementRef.nativeElement);
|
|
8958
|
-
// }
|
|
8959
|
-
//
|
|
8960
|
-
// autosizeAllColumns() {
|
|
8961
|
-
// this._svc.autosizeAllColumns(this._elementRef.nativeElement);
|
|
8962
|
-
// }
|
|
8963
8956
|
resizeStart(event) {
|
|
8964
8957
|
const rect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
8965
8958
|
this._startPosition = rect.x;
|
|
@@ -8967,8 +8960,9 @@ class HeadCellComponent {
|
|
|
8967
8960
|
}
|
|
8968
8961
|
resizeProcess(event) {
|
|
8969
8962
|
if (this._startPosition && event.pageX > 0) {
|
|
8963
|
+
const position = this._startPosition;
|
|
8970
8964
|
requestAnimationFrame(() => {
|
|
8971
|
-
this._svc.resizeColumn(new ColumnResizeEvent(this.column, event.pageX -
|
|
8965
|
+
this._svc.resizeColumn(new ColumnResizeEvent(this.column, event.pageX - position));
|
|
8972
8966
|
this._app.tick();
|
|
8973
8967
|
});
|
|
8974
8968
|
}
|