Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Possible BUG: setting height/width makes a mess up

$
0
0
  • 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 right
With previous versions of SDK I got the correct behavior. Thanks for attention.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>