eclipsesource / eclipsesource/tabris-js

Windows 10 - centerX and centerY offset not working

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

Description

### Problem description

These buttons work as expected on iPhone 6, but the offset is ignored on |Windows 10.
Thanks.

### Environment

- Tabris.js version: 2.4
- Device: Windows 10
- OS: iOS 10.3.1

### Code snippet

```javascript

// This is a simple Tabris.js app. Feel free to modify as you please.
// Changes are saved immediately and will be available on your device after reload.

const {Button, TextView, ui} = require('tabris');

// Create a push button and add it to the content view
let button = new Button({
centerX: 0, centerY: 0,
text: 'Button'
}).appendTo(ui.contentView);

// Create a push button and add it to the content view
let button1 = new Button({
centerX: 100, centerY: 100,
text: 'Button1'
}).appendTo(ui.contentView);

```
![windows-10-center](https://user-images.githubusercontent.com/3249215/37438392-85b3d6e8-27c8-11e8-81f9-d0741a78c776.png)

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.