Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17579] Child view using Ti.UI.SIZE will NOT grow beyond a parent with clipMode disabled

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsAndroid
LabelsTCSupport, clipmode, ti.ui.size
ReporterFokke Zandbergen
AssigneeUnknown
Created2014-07-21T04:22:57.000+0000
Updated2018-02-28T20:04:05.000+0000

Description

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();

Attachments

FileDateSize
iOS Simulator Screen shot 20 Jul 2014 20.04.12.png2014-07-21T04:22:58.000+0000522926
iOS Simulator Screen shot 20 Jul 2014 20.04.58.png2014-07-21T04:22:58.000+000052474

Comments

No comments

JSON Source