[TIMOB-27119] Android: Views inside horizontal layout are clipped to the top
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Resolved |
| Resolution | Needs more info |
| Resolution Date | 2019-06-01T03:11:42.000+0000 |
| Affected Version/s | Release 8.0.1, Release 7.5.2, Release 8.1.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | n/a |
| Reporter | Hans Knöchel |
| Assignee | Unknown |
| Created | 2019-06-01T03:00:27.000+0000 |
| Updated | 2019-06-01T03:11:42.000+0000 |
Description
Subviews inside a horizontal parent view are clipping to the top on Android. On iOS, they are centered on the y-axis like other views are as well. This is a parity issue.
Example:
var win = Ti.UI.createWindow({ backgroundColor: 'white' });
var view = Ti.UI.createView({ layout: 'horizontal', height: 50, backgroundColor: 'gray' });
view.add(Ti.UI.createView({ left: 10, width: 40, right: 10, backgroundColor: '#ff0', height: 20 }));
view.add(Ti.UI.createView({ left: 0, width: Ti.UI.FILL, right: 10, backgroundColor: '#f00', height: 20 }));
win.add(view);
win.open();
Attachments
| File | Date | Size |
|---|---|---|
| Ohne Titel 2.png | 2019-06-01T03:08:27.000+0000 | 19909 |
Mhh, it seems like in the above case, it clips on iOS as well. We have one layout case where it doesn't but I can't define it right now. Closing for now.