Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24583] Windows: Native view should use absolute position in Ti View

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-04-21T18:18:08.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeSamir Mohammed
Created2017-04-17T06:53:19.000+0000
Updated2017-04-29T13:56:02.000+0000

Description

When Hyperloop native view is added to Titanium View, Titanium layout system should use native view's position.
var win = Ti.UI.createWindow({
    backgroundColor: 'green'
});

var Canvas = require('Windows.UI.Xaml.Controls.Canvas'),
    SolidColorBrush = require('Windows.UI.Xaml.Media.SolidColorBrush'),
    Colors = require('Windows.UI.Colors'),
    TranslateTransform = require('Windows.UI.Xaml.Media.TranslateTransform');

var box = new Canvas();
box.Background = new SolidColorBrush(Colors.Red);
box.Width = 50;
box.Height = 50;

Canvas.SetLeft(box, 100);
Canvas.SetTop(box, 200);

win.add(box);
win.open();
*Expected* Red box should be placed at position left=100, top=200 *Actual* Red box is placed at center of the Window

Comments

  1. Kota Iguchi 2017-04-18

    https://github.com/appcelerator/titanium_mobile_windows/pull/972
  2. Kota Iguchi 2017-04-24

    Just removed "Hyperloop 2.1.0" from fixVersion because this ticket is actually depending on SDK 6.1.0. There's nothing to fix for Hyperloop module itself.

JSON Source