Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12707] MobileWeb: Ti.UI.View.center property does not work.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T22:15:09.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.2
Fix Version/sn/a
ComponentsMobileWeb
Labelsmobileweb
ReporterCarter Lathrop
AssigneeUnknown
Created2013-02-08T15:52:25.000+0000
Updated2018-04-04T23:20:25.000+0000

Description

*Steps to reproduce:* 1) open project from attachment in Titanium studio 2) run it (as mobile web) *Expected result:* see attached image bug_center_expected.png *Actual result:* see attached image bug_center_actual.png *Code from project:* {noformat} var win = Titanium.UI.createWindow({ backgroundColor: '#FFFFFF', }); var view = Ti.UI.createView({ backgroundColor: 'red', center: {'x': 50, 'y': 50}, width: 20, height: 70, }), view2 = Ti.UI.createView({ backgroundColor: 'green', center: {'x': 100, 'y': 100}, width: 40, height: 50, }), view3 = Ti.UI.createView({ backgroundColor: 'blue', center: {'x': 150, 'y': 150}, width: 60, height: 30, }); win.add(view); win.add(view2); win.add(view3); win.open(); {noformat}

Attachments

FileDateSize
bug_center_actual.png2013-02-08T15:52:25.000+00005849
bug_center_expected.png2013-02-08T15:52:25.000+00005893
viewCenterBug.zip2013-02-08T15:52:25.000+0000816694

Comments

  1. Carter Lathrop 2013-02-12

    Tested and confirmed that center property not working as expected. On: Titanium Studio, build: 3.0.1.201212181159 and SDK: 3.0.23
  2. Lee Morris 2017-06-26

    Resolving as "Won't Fix" as MobileWeb has been deprecated.
  3. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source