Titanium JIRA Archive
Appcelerator Community (AC)

[AC-866] Views behaviour different in iOS and Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2015-01-17T02:10:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsalloy
ReporterManuel Conde Vendrell
AssigneeShuo Liang
Created2015-01-15T21:56:24.000+0000
Updated2016-03-08T07:37:09.000+0000

Description

The same layout on Mobileweb, Android and iOS gives different result (Mobileweb & Android ok, iOS, fail). I'm trying to include a big label inside a little view: the big label must be shortened to the size of the container view. On Mobileweb & Android works fine. On iOS, all views are expanded and only the last is shown (over the all). This is the Alloy xml file (no js needed, except for $.index.open() command):
<Alloy>
	<Window layout="vertical">
    	<View id="viewButtons" top="30" left="10" height="Ti.UI.SIZE">
			<View top="0" left="0" height="150" width="150">
				<Label top="0" left="0" height="300" width="300" borderRadius="150" backgroundColor="red"></Label>
			</View>
			<View top="0" left="150" height="150" width="150">
				<Label top="0" left="-150" height="300" width="300" borderRadius="150" backgroundColor="blue"></Label>
			</View>
			<View top="150" left="0" height="150" width="150">
				<Label top="-150" left="0" height="300" width="300" borderRadius="150" backgroundColor="yellow"></Label>
			</View>
			<View top="150" left="150" height="150" width="150">
				<Label top="-150" left="-150" height="300" width="300" borderRadius="150" backgroundColor="green"></Label>
			</View>
    	</View>
	</Window>
</Alloy>

Attachments

FileDateSize
Captura de pantalla 2015-01-15 a la(s) 22.42.25.png2015-01-15T21:56:24.000+000013972
Captura de pantalla 2015-01-15 a la(s) 22.42.57.png2015-01-15T21:56:24.000+000026656

Comments

  1. Shuo Liang 2015-01-16

    Hi, This is only happened in SDK 3.4.1, please try to use the SDK 3.5.0.GA. It will work well in IOS. Regards, Shuo
  2. Manuel Conde Vendrell 2015-01-16

    Ok Shuo, I will try today, when I update the system (fingers crossed...). Thanks
  3. Manuel Conde Vendrell 2015-01-16

    Tested with 3.5.0 and working. Can be closed, thanks.

JSON Source