[TIMOB-24583] Windows: Native view should use absolute position in Ti View
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-04-21T18:18:08.000+0000 |
Affected Version/s | Release 6.1.0 |
Fix Version/s | Release 6.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Samir Mohammed |
Created | 2017-04-17T06:53:19.000+0000 |
Updated | 2017-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
https://github.com/appcelerator/titanium_mobile_windows/pull/972
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.