Ti.UI.View
and its subclasses should "crop" child views if they are bigger than the parent view. Currently child views does "overflow" parent view.
var win = Ti.UI.createWindow({ backgroundColor: 'blue' });
var view = Ti.UI.createView({
backgroundColor: 'red',
width: 185, height: 185,
zindex: 20
});
var image = Ti.UI.createView({
backgroundColor: 'yellow',
top: -20, left: -185,
width: 555, height: 312
});
var imageview = Ti.UI.createImageView({
image: 'http://image.tmdb.org/t/p/w780//3FweBee0xZoY77uO1bhUOlQorNH.jpg',
top: -20, left: -185,
width: 555, height: 312
});
image.add(imageview);
view.add(image);
win.add(view);
win.open()
https://github.com/appcelerator/titanium_mobile_windows/pull/417
Verified using: Windows 8.1 Appc CLI Core: 5.0.0-33 Appc CLI NPM: 4.2.0-1 Titanium SDK: 5.0.0.v20150902095518 Nokia Lumia 930 8.1 When a child view is added that is smaller than the parent, the child view is cropped, matching ios.png Closing ticket