Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24583

Windows: Native view should use absolute position in Ti View

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.1.0
    • Component/s: Windows
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              smohammed Samir Mohammed
              Reporter:
              kiguchi Kota Iguchi (Inactive)
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10600
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code