[TIMOB-8742] Android: Provide a means to "unset" positioning properties for a view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-18T17:50:30.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | TiAPI |
Labels | core, layout |
Reporter | Opie Cyrus |
Assignee | Max Stepanov |
Created | 2012-04-16T13:04:22.000+0000 |
Updated | 2012-08-16T03:32:16.000+0000 |
Description
Provide a means to "unset" positioning properties for a view so that layout behavior goes back to the default behavior
IE:
view.left = 10;
/// stuff happens and now you want to revert to default positioning for the element
view.left = ?;
I would prefer "view.left = undefined" or "view.left = null". The reason for that lies in the fact that people will try to do same thing on other (Titianium JS host) objects that might blow things up.
These will work too after the fix will be pushed:
Cool, thanks. :)
Test code (already works on iOS and MobileWeb)
PR pending https://github.com/appcelerator/titanium_mobile/pull/2030
Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120815194913 Tested with Titanium Studio: 2.1.1.201207271312 Device - Samsung GALAXY Note Android 2.3.6 Machine OS - MAC 10.7.3