- Windows 7 x64
- Ti SDK 3.5.0 and 3.4.1
- Studio: 3.4.1.20.....
- Alloy
- Target: Genymotion 2.3.1 and TiShadow on Galaxy S3
- default unit: px or dp
Hi, I think it's a bug: if i create a very simple window and set height and width the layout messed up. Example:
index.xml<Alloy>
<Window id="winIndex">
<ImageView image="letters/a.jpg"></ImageView>
</Window>
</Alloy>
index.tss"#winIndex":{
layout: "vertical",
backgroundColor: "#abc",
}
the followin index.js code file works fine:
index.js$.winIndex.open();
But this creates a mess up:
$.winIndex.width = 720; // the real width of the device // also if I use Titanium.Platform.displayCaps.platformWidth $.winIndex.open(); // The imageView is shifted on the rightWith previous versions of SDK I got the correct behavior. Thanks for attention.