Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-8682] Android: Setting "top" to null causes "bottom" to not be recognized #2030

Merged
merged 2 commits into from Apr 19, 2012
Merged

[TIMOB-8682] Android: Setting "top" to null causes "bottom" to not be recognized #2030

merged 2 commits into from Apr 19, 2012

Conversation

mstepanov
Copy link
Contributor

TIMOB-8682
Also fixes TIMOB-8742

Test cases in JIRAs. For TIMOB-8682 try both null and undefined.
Also fixes potential ClassCastException when value other than number or string is assigned to a property.

@@ -545,9 +545,10 @@ public static TiDimension toTiDimension(Object value, int valueType)
{
if (value instanceof Number) {
value = value.toString() + TiApplication.getInstance().getDefaultUnit();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should also be a return value for this case.

@pingwang2011
Copy link
Contributor

code reviewed and functionally tested. Ran drillbit ui and ui.layout test for sanity check. All passed. Accepted

ayeung pushed a commit that referenced this pull request Apr 19, 2012
[TIMOB-8682] Android: Setting "top" to null causes "bottom" to not be recognized
@ayeung ayeung merged commit b55d049 into tidev:master Apr 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants