Problem Description
As the example and the second screenshot shows, the image view (which is
Ti.UI.SIZE
by default) will stay contained in the smaller parent view, even though it has clipMode disabled.
If you would add the image view directly to the window you'd get the expected behaviour, also shown in the first screenshot.
Hello,
We have tested this issue with our sample code. Child view using Ti.UI.SIZE will NOT grow beyond a parent with clipMode disabled. It’s a bug.
*TESTING ENVIRONMENT:*
Titanium SDK: 3.3.0.GA and 3.2.3.GA
Titanium CLI: 3.3.0
OS X Version: 10.9.3
Android API Level: 17 and 19
Steps to reproduce
a) Create a simple project.
b) Copy the Code Sample into app.js
c) Run this with testing environment
Code Sample
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var view = Ti.UI.createView({
width: 100,
height: 100,
backgroundColor: 'red',
clipMode: Ti.UI.iOS.CLIP_MODE_DISABLED
});
var image = Ti.UI.createImageView({
image: '/Default.png'
});
view.add(image);
win.add(view);
win.open();
No comments