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-24792] Android: Fix horizontal layout #9123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node Version: 6.10.3
NPM Version: 3.10.10
Mac OS: 10.12.4
Appc CLI: 6.2.2
Appc CLI NPM: 4.2.9
Titanium SDK version:master (6.2.0) pr/9124
Appcelerator Studio, build: 4.9.0.201705302345
Xcode 8.3.2
Passed FR. In addition to the test case above, I tried changing other property values. Based on my testing, the bug is considered fixed.
This is definitely the right solution. I checked our "ListItem" documentation and it doesn't support a "layout" property. I double-checked iOS and we definitely ignore the ListItem.layout property on that platform. So, this whole time, the TIMOB-24277 bug we were originally trying to fix was really just a platform inconsistency. Android was respecting the given horizontal layout property when it shouldn't have. If a developer needs to use a horizontal or vertical layout within a ListView row, then the portable way to do it on Android and iOS is to set up a view container with a layout and add child views to that container. I've tested that and it works. @garymathews, great job identifying the issue! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
@jquick-axway I didn't test this PR yet, but have you tried the code I've mentioned here: TIMOB-24277 with this fix? |
@m1ga Yes, it works as expected |
right
bound ofTitanium.UI.View
Titanium.UI.ListItem
should ignore thelayout
propertyTEST CASE
#1
TEST CASE
#2
NOTE: this requires a thorough test to make sure no other layout issues are introduced
JIRA Ticket