eclipsesource / eclipsesource/tabris-js

CollectionView does not relayout when setting an image on it

Open
#1,816 2 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 an image on the `CollectionView` does not relayout the cell height when `cellHeight` is auto.

### Expected behavior

The cell should grow to accommodate the layout created with the applied image.

### Environment

- Tabris.js version: 3.0.0-beta2
- Device: iPhone 6
- OS: iOS 12

### Code snippet

```javascript
import {CollectionView, contentView, ImageView} from 'tabris';

contentView.append(
}
updateCell={(cell, index) => cell.image = 'resources/salad.jpg'}/>
);

```

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.