[ALOY-657] FixedSpace not supported in XML Markup
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-05-09T00:00:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.4.0 |
Components | XML |
Labels | qe-testadded |
Reporter | Daniel Sefton |
Assignee | Tim Poulsen |
Created | 2013-05-03T13:46:41.000+0000 |
Updated | 2014-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"/>
https://github.com/appcelerator/alloy/pull/300
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.
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
Reopening to change labels
closing after adding label "qe-testadded".