Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2608] Adding an ImageView with height attribute set to 'auto' to a TableRowView causing weird graphical behavior

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNeeds more info
Resolution Date2012-07-26T12:52:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBert
AssigneeNeeraj Gupta
Created2011-04-15T03:24:40.000+0000
Updated2012-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

FileDateSize
screen-shot-2010-12-17-at-93624-am.png2011-04-15T03:24:40.000+000056608
screen-shot-2010-12-17-at-94721-am.png2011-04-15T03:24:40.000+000058126

Comments

  1. Stephen Tramer 2012-07-26

    Requires *complete* & valid test case

    Ticket can be reopened when this is provided.

JSON Source