eclipsesource / eclipsesource/tabris-js

Layout not correctly computed

Open
#1,436 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

The snippet below produces the wrong layout

### Expected behavior

The red composite, containing the RadioButton should have its intrinsic size. Instead it is spanned to fill the entire screen next to the blue TextView.

![image uploaded from ios 8](https://user-images.githubusercontent.com/73655/28421916-db9f417c-6d66-11e7-930d-60f7bf250fe7.jpg)

### Environment

- Tabris.js version: 2.0.0
- Device: iPhone ES
- OS: 10.3.2

### Code snippet

```javascript
new tabris.TextView({
background: 'blue',
text: 'second label',
left: 16,
right: ['#composite', 16],
}).appendTo(tabris.ui.contentView);

let t2 = new tabris.Composite({
id: 'composite',
background: 'red',
right: 16,
}).appendTo(tabris.ui.contentView);

new tabris.RadioButton({text: 'RadioButton'}).appendTo(t2);
```

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.