{ "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
Crossing my fingers that this doesn't get pushed to 1.4
ack! :(
(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...
When a window constructor url contains a subdirectory, the bar\nimage url is relative to the subdirectory.
\nMy initial expectation was for the bar image url to be relative\nto the parent file (app.js) and not the sub-context (win1.js).
\nIf 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
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).
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:
\nWhen 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.
\nIf the new window does not use a barImage, the title is\nrendered, but again, without animation.
\n(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...
Assign-time barImage url resolution works great. Thanks\nBlain!
\nDuring 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?
re-opening see Justin's comment
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
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.
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.
Appreciate you looking into it, thanks Stephen!
(from [3e56a1be575abe034f0062d68f7002e071136f03])\nCloses #493: barImage backgrounds are removed from the\nview before focusing the new window. \nhttp://github.com/appcelerator/titanium_mobile/commit/3e56a1be575ab...
That was impressively fast. Grazie!
I hate to do this, but I noticed another possible issue.\nopenPhotoGallery() causes the bar image to disappear.
This bug is getting too long and I don't want to reopen/rename\nit again. See #1091.