{ "id": "61125", "key": "TIMOB-493", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:16.000+0000", "created": "2011-04-15T02:30:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios", "iphone", "navbar" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:16.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}

this was in 0.8 - just need to add it back to 0.9

{html}", "attachment": [], "flagged": false, "summary": "implement background image for navbar", "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": "123373", "author": { "name": "majman", "key": "majman", "displayName": "majman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Crossing my fingers that this doesn't get pushed to 1.4

{html}", "updateAuthor": { "name": "majman", "key": "majman", "displayName": "majman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:12.000+0000", "updated": "2011-04-15T02:30:12.000+0000" }, { "id": "123374", "author": { "name": "majman", "key": "majman", "displayName": "majman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ack! :(

{html}", "updateAuthor": { "name": "majman", "key": "majman", "displayName": "majman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:13.000+0000", "updated": "2011-04-15T02:30:13.000+0000" }, { "id": "123375", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [1c21cf4ddb0d2a3b1bcf7f385ea9bc2f1b3e4ba9])\nCloses #493 . window now supports a barImage property,\nand the window_navbar.js has a button to reflect this new feature.\n\nhttp://github.com/appcelerator/titanium_mobile/commit/1c21cf4ddb0d2...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:13.000+0000", "updated": "2011-04-15T02:30:13.000+0000" }, { "id": "123376", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

When a window constructor url contains a subdirectory, the bar\nimage url is relative to the subdirectory.

\n

My initial expectation was for the bar image url to be relative\nto the parent file (app.js) and not the sub-context (win1.js).

\n

If possible, having the url be relative to the parent may be a\nlittle more intuitive.

\n
\n// from within app.js\nvar win2 = Ti.UI.createWindow({\n    titleImage:'appcelerator_small.png',\n    url:'hello/win1.js'\n});\n\n// this doesn't work\nwin1.barImage = 'corkboard.jpg';\n// but this does\nwin1.barImage = '../corkboard.jpg';\n});\n
{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:13.000+0000", "updated": "2011-04-15T02:30:13.000+0000" }, { "id": "123377", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

When the bar image is defined in the constructor, it causes nav\nbar buttons to not display. Refreshing the nav bar area by changing\ntabs restores the buttons (and bar image).

{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:13.000+0000", "updated": "2011-04-15T02:30:13.000+0000" }, { "id": "123378", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The title of an opening window's navbar normally fades and\nslides into view. When using a barImage, it appears to break this\nanimation. Observations:

\n
    \n
  1. \n

    When a new window uses a barImage, the title of the new window\ndoes not display. Workaround,: setTimeout 10 ms, set barImage to\nnull, then to actual image and setTitle. This causes title to\ndisplay, but without animation. Instead, it appears abruptly.

    \n
  2. \n
  3. \n

    If the new window does not use a barImage, the title is\nrendered, but again, without animation.

    \n
  4. \n
{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:14.000+0000", "updated": "2011-04-15T02:30:14.000+0000" }, { "id": "123379", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [a38ad774baa02dd59218a2aaf2a0216d31e4e550])\nCloses #493 (again) -- Setting the nav button now will\ncause the barImage to refresh (and be properly located) and more\nso, setting the barImage causes the url to be resolved at assign\ntime. \nhttp://github.com/appcelerator/titanium_mobile/commit/a38ad774baa02...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:14.000+0000", "updated": "2011-04-15T02:30:14.000+0000" }, { "id": "123380", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assign-time barImage url resolution works great. Thanks\nBlain!

\n

During a barImage'd window's opening animation, the title\nappears abruptly rather than sliding in from the left. Can you add\nsupport for this animation?

{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:14.000+0000", "updated": "2011-04-15T02:30:14.000+0000" }, { "id": "123381", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

re-opening see Justin's comment

{html}", "updateAuthor": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:15.000+0000", "updated": "2011-04-15T02:30:15.000+0000" }, { "id": "123382", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This can actually be handled in the JS. You need to set the\nbarImage when opening the window, NOT in the JS that lays out the\nwindow. Example:

\n
\nwin = Titanium.UI.createWindow({\n  url:'test.js',\n  title:'Test',\n  backgroundColor:'#fff',\n  barImage:'../images/corkboard.jpg'\n});\nTitanium.UI.currentTab.open(win,{animated:true});\n
{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:15.000+0000", "updated": "2011-04-15T02:30:15.000+0000" }, { "id": "123383", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm doing this, but it does not appear to be working. When I\nremove the barImage from both windows, upon opening the 2nd window,\nthe title slides and fades in. Whereas without it, the title does\nnot slide and simply appears.

{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:15.000+0000", "updated": "2011-04-15T02:30:15.000+0000" }, { "id": "123384", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Okay, it doesn't work when you have a different barImage set\npreviously. I'm not sure we can have any control over this but will\nlook at it.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:15.000+0000", "updated": "2011-04-15T02:30:15.000+0000" }, { "id": "123385", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Appreciate you looking into it, thanks Stephen!

{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:16.000+0000", "updated": "2011-04-15T02:30:16.000+0000" }, { "id": "123386", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [3e56a1be575abe034f0062d68f7002e071136f03])\nCloses #493: barImage backgrounds are removed from the\nview before focusing the new window. \nhttp://github.com/appcelerator/titanium_mobile/commit/3e56a1be575ab...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:16.000+0000", "updated": "2011-04-15T02:30:16.000+0000" }, { "id": "123387", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

That was impressively fast. Grazie!

{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:16.000+0000", "updated": "2011-04-15T02:30:16.000+0000" }, { "id": "123388", "author": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I hate to do this, but I noticed another possible issue.\nopenPhotoGallery() causes the bar image to disappear.

{html}", "updateAuthor": { "name": "justin", "key": "justin", "displayName": "Justin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:16.000+0000", "updated": "2011-04-15T02:30:16.000+0000" }, { "id": "123389", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This bug is getting too long and I don't want to reopen/rename\nit again. See #1091.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:16.000+0000", "updated": "2011-04-15T02:30:16.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }