Skip to content

Commit

Permalink
fix(summary): convert getCellWidth from getter to method #3462
Browse files Browse the repository at this point in the history
  • Loading branch information
Tacho committed Dec 19, 2018
1 parent 96e033c commit fb77a42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/igniteui-angular/src/lib/grids/cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class IgxGridCellComponent implements OnInit, AfterViewInit {
@HostBinding('style.max-width')
@HostBinding('style.flex-basis')
get width() {
return this.column.getCellWidth;
return this.column.getCellWidth();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ export class IgxColumnComponent implements AfterContentInit {
/**
*@hidden
*/
public get getCellWidth() {
public getCellWidth() {
const hasVerticalScroll = !this.grid.verticalScrollContainer.dc.instance.notVirtual;
const colWidth = this.width;
const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth.indexOf('%') !== -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class IgxSummaryCellComponent {
@HostBinding('style.max-width')
@HostBinding('style.flex-basis')
get width() {
return this.column.getCellWidth;
return this.column.getCellWidth();
}

get nativeElement(): any {
Expand Down

0 comments on commit fb77a42

Please sign in to comment.