[TIMOB-2608] Adding an ImageView with height attribute set to 'auto' to a TableRowView causing weird graphical behavior
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-07-26T12:52:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Bert |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:24:40.000+0000 |
Updated | 2012-07-26T21:37:11.000+0000 |
Description
I have an TableView that I have customized to include an image left of the text (much like the kitchensink app TableView layout 2). I created this table in 1.4.2 and it was working fine. On download of 1.5.0 and subsequently 1.5.1 i noticed the graphical behavior displayed in the first attachement.
Switching back to 1.4.2 shows the expected behavior (2nd screenshot).
Code snippet:
var profileImage = Titanium.UI.createImageView({
image: '../images/species/'+result.fieldByName('profileImage'),
borderRadius: 5,
height: 'auto',
width: 80,
top: 5,
left: 5
});</code>
Note: This image is being resized from its original dimensions
Interestingly enough, when removing the height property - the expected behavior returns.
iPhone SDK version: 4.1
Titanium Mobile SDK: 1.5.0, 1.5.1
Attachments
File | Date | Size |
---|---|---|
screen-shot-2010-12-17-at-93624-am.png | 2011-04-15T03:24:40.000+0000 | 56608 |
screen-shot-2010-12-17-at-94721-am.png | 2011-04-15T03:24:40.000+0000 | 58126 |
Requires *complete* & valid test case
Ticket can be reopened when this is provided.