Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18042] Image sizing on Android and iOS not consistent / yield different results

GitHub Issuen/a
TypeStory
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, iOS, TiAPI
Labelsn/a
ReporterRick Blalock
AssigneeUnknown
Created2014-11-17T14:47:25.000+0000
Updated2018-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

FileDateSize
100.jpg2014-11-17T14:47:25.000+000030529

Comments

No comments

JSON Source