[ALOY-750] Can't use a pipe separator (bitwise operator) in TSS for some API's that require it
|Affected Version/s||Alloy 1.1.2|
|Fix Version/s||Alloy 1.3.0|
Descriptionthis causes a compiler error when doing this in a TSS file: windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN | Ti.UI.Android.SOFT_INPUT_ADJUST_PAN Per docs, this should be possible: http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.Window-property-windowSoftInputMode
- Tony Lukasavage 2013-08-02 A workaround for this would be doing the bitwise operation in the alloy.js, adding this as a property to Alloy.Globals, then using the property in the TSS. It's unwieldy, but will work until a fix is in place.
- Tony Lukasavage 2013-08-08
test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-750
For functional test to pass:
Run the test app for android
Ensure that the compile process does not generate errors (it did before this was resolved)
Check the generated code in "Resources/alloy/controllers/index.js" and make sure that the main window has the following in its construction properties:
In addition, the full automated test suite should be run to ensure that there are no regressions in the TSS handling due to the grammar changes.
windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN | Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
- Federico Casali 2013-10-14 Verified fixed. TiSDK 3.2.0.v20131013140318 Alloy 1.3.0 Android simulator 2.3.3 and Google Nexus One 4.1.2 Closing