Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-463] setting titleImage + url in createWindow = doesn't work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:07.000+0000
Affected Version/sn/a
Fix Version/s0.9.3
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:29:46.000+0000
Updated2011-04-17T01:53:07.000+0000

Description

In app.js, I added titleImage to the first window constructor. When the apps starts, the title image is not visible. this seems to be related to having a url in createWindow because the window_constructor.js test sets the titleImage in the constructor and it works.

Comments

  1. Blain Hamon 2011-04-15

    Notes to self:

    TitleImage actually gets set properly the first time around, when relative to app.js. It uses the image at /images/slider_thumb.png.

    The problem is that, when generating the controller, it regenerates this image, but is now relative to /main_windows/base_ui.js, and /main_windows/images/slider_thumb.png doesn't exist.

    Bigger issue:

    When we're saving any url, where there's a chance that it can be relative to the calling context, we need to save the resulting absolute url instead of the relative fragment.

  2. Jeff Haynie 2011-04-15

    (from [cc3cbfc6c7b1f5f486b9dada29a9566c350b1a1f]) Closes #463 http://github.com/appcelerator/titanium_mobile/commit/cc3cbfc6c7b1f5f486b9dada29a9566c350b1a1f"> http://github.com/appcelerator/titanium_mobile/commit/cc3cbfc6c7b1f...

JSON Source