# table/tablecolumnresize/tablecolumnresizeediting

module

<a id="classes">

## Classes

<a id="class-TableColumnResizeEditing">

### [TableColumnResizeEditing](module_table_tablecolumnresize_tablecolumnresizeediting-TableColumnResizeEditing.md)

<a id="functions">

## Functions

<a id="function-applyContainerWidthResistance">

### `applyContainerWidthResistance( naturalTableWidth, containerWidth ) → number` _(internal)_

Given the table width a drag would naturally produce, returns the width that should actually be applied once snapping and growth resistance around the container's width are taken into account:

* if the natural width lands close to the container's width (on either side), it's pulled to exactly match it,
* if the natural width is past the container's width, it stays pinned at the container's width until the drag has gone far enough beyond it (the "resistance" zone) - past that point it keeps growing 1:1, continuing smoothly from where the resistance was overcome instead of jumping,
* shrinking below the container's width is never resisted, only snapped when close.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/tablecolumnresizeediting.ts#L1619)

#### Parameters

* `naturalTableWidth: number`
* `containerWidth: number`

#### Returns

* `number`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
