eclipsesource / eclipsesource/tabris-js

Combining relative layout and percentage based layout produces wrong results on windows

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

Description

When layouting a widget B relative to another widget A, which has a percentage based layout, widget B will be positioned offscreen.

```js
const {Composite, ui} = require('tabris');

new Composite({
left: 0, top: 0, bottom: 0, right: '50%',
background: 'red'
}).appendTo(ui.contentView);

new Composite({
left: ['prev()', 0], top: 0, bottom: 0, right: 0,
background: 'blue'
}).appendTo(ui.contentView);

```

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.