eclipsesource / eclipsesource/tabris-js

TextView does not show all lines when maxLines is combined with lineSpacing

Open
#1,867 0 comments 0 reactions 0 assignees View on GitHub
bug ios
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description

Setting `maxLines` and `lineSpacing` on a `TextView` leads to text being cut of to early.

### Expected behavior

The text should be fully shown in the number of lines defined in the `maxLines` property.

### Environment

- Tabris.js version: 3.x
- Device: iPhone 6
- OS: iOS 12

### Code snippet

```jsx
import {contentView, TextView} from 'tabris';

contentView.append(
This is some
longer text which should wrap after it has covered a certain amount
space. This is some longer text which should wrap after it has
covered a certain amount space.
);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.