---
url: /api/formats/interactions/src/functions/syncTruncateAutoLines.md
---
[pantoken-root](../../../../index.md) / [formats/interactions/src](../index.md) / syncTruncateAutoLines

# Function: syncTruncateAutoLines()

> **syncTruncateAutoLines**(`host`, `target`): `void`

Compute and apply a numeric `--lines` value from available height.

## Parameters

### host

`HTMLElement`

### target

`HTMLElement`

## Returns

`void`
