{ "id": "61158", "key": "TIMOB-526", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11220", "name": "Release 1.1.0", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:24.000+0000", "created": "2011-04-15T02:31:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Run this code - label gets cutoff

\n

var win = Ti.UI.createWindow();

\n

var scrollView = Ti.UI.createScrollView({

\n
\ncontentWidth:'auto',\ncontentHeight:'auto',\nshowVerticalScrollIndicator:true,\nshowHorizontalScrollIndicator:false,\nbackgroundColor:'transparent'\n
\n

});

\n

var cleanstory = 'St Kilda has sacked recruit Andrew Lovett just\na day after the former Essendon forward was charged with rape but\ninsists it was not because of the criminal charge he faces.\\n\\nThe\nSaints confirmed on Tuesday afternoon that they intend to\n'terminate Lovett's employment' with the club immediately, less\nthan three months after giving up their first pick in the national\ndraft in ';
\ncleanstory = cleanstory + 'order to secure the troubled\nstar.\\n\\nLovett fell foul of club officials within weeks of joining\nthe club when he was arrested for being drunk in a public place but\nafter being fined following that incident he found himself in much\nmore trouble in December.\\n\\nAfter drinking with a team-mate at a\nRichmond hotel late in December Lovett was accused of raping a\nsleeping woman at ';
\ncleanstory = cleanstory + 'a Port Melbourne apartment, with the\nclub reacting to the allegations by immediately suspending him\nindefinitely.\\n\\nAnd while police charges were not laid until\nMonday the club has announced that it has made the decision to\ndismiss Lovett but claims the decision is 'not based on whether or\nnot Andrew Lovett is innocent or guilty', that it was 'not part of\nthe club's decision-making process'.\\n\\n\"During ';
\ncleanstory = cleanstory + 'Andrew's short tenure with the club, on\na number of occasions he engaged in actions that were failures to\ncomply with our standards of expected behavioral conduct,\" said\nchief executive Michael Nettlefold.\\n\\n\"These failures related to\nhis training commitments and a failure to contact club officials in\na situation where he should have done so. \"\\n\\n\"We simply could not\nignore such breaches. Nor could we ignore ';
\ncleanstory = cleanstory + 'the damage being done to St Kilda's\nreputation and decided unanimously as a club to terminate Andrew\nLovett's employment with the Saints.\"\\n\\nWhile St Kilda refused to\ndiscuss the case against Lovett as it does not want to prejudice\nhim, the AFL Players' Association was 'extremely disappointed' with\nthe Saints' decision.\\n\\n\"The AFL and AFLPA have agreed to a\ngrievance resolution procedure which seeks ';
\ncleanstory = cleanstory + 'to resolve disputes between players and\nClubs in good faith,\" AFLPA CEO Matthew Finnis said.\\n\\n\"We expect\nthat clubs and players will respect this procedure and use their\nbest endeavours to resolve issues between them via this\nsystem.\"\\n\\n\"St Kilda's decision is, in our view, inconsistent with\nthis principle and has the potential to undermine the commitment of\nplayers to the established codes and procedures for ';
\ncleanstory = cleanstory + 'dealing with disciplinary matters and\ndisputes within the AFL industry.\"\\n\\n\"AFL players are employees,\nand AFL clubs are workplaces. Notwithstanding the nature of their\nwork or their profiles, AFL players ought be able to rely upon\nbasic principles of fairness and due process before being subjected\nto disciplinary action.\"\\n\\n\"We have serious concerns as to whether\nAndrew's legal rights have been respected and will';
\ncleanstory = cleanstory + 'further consult with his legal\nrepresentatives to address this concern in coming days.\"\\n\\nHaving\nreportedly signed a three-year, $1 million contract when he was\ndrafted, Lovett may launch legal action against St Kilda, which\nrefused to say whether he will have his contract paid\nout.\\n\\nLovett was seeking mediation to try and have the decision\nto ban him from the club overturned but with mediation no longer a\npossibility it appears almost certain that he will take the Saints\nto court.\\n\\nMeanwhile, AFL General Manager of Football Operations\nAdrian Anderson indicated in a statement on Tuesday that they would\nbe leaving the matter in the hands of the club in\nquestion.\\n\\n\"This is a contractual matter between St Kilda and\nAndrew Lovett. The AFL respects the right of St Kilda to make this\ndecision and we do not intend to interfere in the matter,\" Anderson\nsaid.\\n\\nSt Kilda coach Ross Lyon admitted that the decision to\ngive up pick 16 at last year's draft for Lovett had backfired and\nthat he is now looking forward to Friday's NAB Cup clash with\nCollingwood at Etihad Stadium.\\n\\n\"We went through what we believed\nto be due diligence or research and referencing and at the end of\nthat made a reasonable or unanimous decision,\" Lyon said.\\n\\n\"It's\neasy to sit here in hindsight (and say we should not have traded\nfor him) but I'm certainly not saying it's been a positive\noutcome.\"\\n\\n\"As a coach and a team what we need is to focus on our\nactions and prepare and the AFL season continues but we're one\nshort.\"\\n\\n\"But it's undeniably a negative start (to the season).\nIt's not something we could've foreseen.\"\\n\\n\"You try and prepare\nfor challenges thrown up, this is one that's been put in front of\nus and that we'll deal with. (But) we're mentally\nstrong.\"\\n\\nLovett, who booted 93 goals in 88 games with the\nBombers after making his debut in 2005, was released by the club at\nthe end of the 2009 season after a troubled five years at Windy\nHill.\\n\\nA gifted player on the field, having won the Anzac Day\nmedal as best afield in just his third game in the traditional\nbattle against Collingwood in Round 5 of his debut season, Lovett\nfound himself in trouble several times of it during his time with\nEssendon.\\n\\nThe most serious issue related an incident with a\nformer girlfriend in which he was accused of beating her and\nrefusing to let her out of his car as he kept her hostage driving\naround Melbourne for 45 minutes.\\n\\nHe was later fined for\nbreaching an intervention order that legally prevented him from\napproaching her before last year also being suspended from driving\nfor three months for driving without a licence.';

\n

var labelStory = Ti.UI.createLabel({

\n
\ntext: cleanstory,\ncolor: '#576996',\ntextAlign:'left',\ntop:0,\nleft:3,\nwidth:315,\nheight:'auto',\nfont:{fontFamily:'Helvetica',color:'#000000',fontWeight:'normal',fontSize:12}\n
\n

});

\n

scrollView.add(labelStory);
\nwin.add(scrollView);

\n

win.open()

{html}", "attachment": [], "flagged": false, "summary": "Label Auto height not always calculated correctly", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123467", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [354d8c2dee9563420aac49b77203f05d63589b69])\nCloses #526 \nhttp://github.com/appcelerator/titanium_mobile/commit/354d8c2dee956...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:02.000+0000", "updated": "2011-04-15T02:31:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }