# Javascript: TXTextControl.refreshLayout Method

> Forces a layout refresh of the document editor. Use this method in cases where the editor doesn't automatically react to layout changes of your web site.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.refreshLayout Method
- **145 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/refreshlayout-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/refreshlayout-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/refreshlayout-method/llms-full.txt

---

### Description

Forces a layout refresh of the document editor. Use this method in cases where the editor doesn't automatically react to layout changes of your web site.

### Syntax

```javascript
<void> TXTextControl.refreshLayout()
```

### Examples

The following example demonstrates `TXTextControl.refreshLayout` in a practical document-editing workflow. Forces a layout refresh of the document editor. Use this method in cases where the editor doesn't automatically react to layout changes of your web site.

```javascript
TXTextControl.refreshLayout();
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.redo Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/redo-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.RelationalOperator Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/relationaloperator-enumeration/llms-full.txt)
