Project: titanium
Issue TIMOB-19409: Windows: Layout parity: View should "crop" child view
{{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. {code:javascript} 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() {code}
Story points: 13