Titanium JIRA Archive
Alloy (ALOY)

[ALOY-657] FixedSpace not supported in XML Markup

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2014-05-09T00:00:22.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.4.0
ComponentsXML
Labelsqe-testadded
ReporterDaniel Sefton
AssigneeTim Poulsen
Created2013-05-03T13:46:41.000+0000
Updated2014-05-30T15:22:40.000+0000

Description

*Problem* FixedSpace is not implemented as an XML shortcut element in Alloy, whereas FlexSpace is. I tried the following but get an error. *Test case*
<Toolbar>
    <Items>
        <FixedSpace width="50"/>
        <Button systemButton="Titanium.UI.iPhone.SystemButton.ADD"/>
    </Items>
</Toolbar>
*Workaround*
<Button systemButton="Ti.UI.iPhone.SystemButton.FIXED_SPACE" width="50"/>

Comments

  1. Tim Poulsen 2014-01-20

    https://github.com/appcelerator/alloy/pull/300
  2. Tim Poulsen 2014-01-20

    PR: https://github.com/appcelerator/alloy/pull/300 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-657 Functional test:  1. Run the app (iOS only)  2. You should see a toolbar with FixedSpace, a button, a FixedSpace, a button, a 100pt-wide FixedSpace, and a button.
  3. Lokesh Choudhary 2014-05-08

    Verified the fix. We see the fixedspace as expected. Closing. Environment: Appc Studio : 3.3.0.201405011408 Ti SDK : 3.3.0.v20140508101423 Mac OSX : 10.8.5 Alloy : 1.4.0-dev CLI - 3.3.0-dev Iphone 5 - iOS 6.1.3
  4. Lokesh Choudhary 2014-05-08

    Reopening to change labels
  5. Lokesh Choudhary 2014-05-09

    closing after adding label "qe-testadded".

JSON Source