[TIMOB-18042] Image sizing on Android and iOS not consistent / yield different results
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS, TiAPI |
Labels | n/a |
Reporter | Rick Blalock |
Assignee | Unknown |
Created | 2014-11-17T14:47:25.000+0000 |
Updated | 2018-02-28T19:55:27.000+0000 |
Description
Image sizing does not yield the same behavior on iOS and Android. Consider the following code:
// TSS
"#listItem": {
width: Ti.UI.FILL,
height: Ti.UI.SIZE,
backgroundColor: "#eee"
},
"#title": {
left: 10,
top: 10,
width: Ti.UI.SIZE,
height: 25,
color: "#222"
},
"#image": {
left: 10,
right: 10,
top: 35,
bottom: 10,
width: Ti.UI.FILL,
height: Ti.UI.SIZE
}
// XML
<Alloy>
<ItemTemplate id="listItem" name="imageItem">
<Label bindId="title" id="title" />
<ImageView bindId="image" id="image" />
</ItemTemplate>
</Alloy>
Sample image attached
This is the result I get: https://db.tt/NzMdzRxr - I'm expecting the same results as iOS.
Attachments
File | Date | Size |
---|---|---|
100.jpg | 2014-11-17T14:47:25.000+0000 | 30529 |
No comments