Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16374] Windows Hybrid: setBackgroundImage does not render on Windows 8 Builds

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-04-17T21:35:53.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2014 Sprint 04, 2014 Sprint 04 Core, Release 3.3.0
ComponentsWindows Hybrid
LabelsWindows, module_hybrid, qe-testadded, triage
ReporterJamil Spain
AssigneeChris Barber
Created2014-02-04T22:37:36.000+0000
Updated2014-07-25T16:53:18.000+0000

Description

When coding an application for Window 8 Hybrid with Mobile web, if you call the setBackgroundImage() for a View, Window, or ImageView, it will not work. It works fine if you view the build from MobileWeb, however once you build for simulator on Windows 8, the images never show up.

Attachments

FileDateSize
TitaniumFiles.zip2014-02-05T07:06:09.000+00006299003

Comments

  1. Jamil Spain 2014-02-05

    I can upload a test app this evening if you need me to
  2. Chris Barber 2014-02-05

    [~jspain] Yes, please attach a test case. That will save a bunch of time.
  3. Jamil Spain 2014-02-05

    Chris, I uploaded the testcase app to the ticket. Basically in the view ( index.xml ) you can change the View to be an imageView or View with backgroundImage and it will not work. If I set it to be ImageView with image property, the image will show. That seems to work fine.
  4. Chris Barber 2014-02-05

    [~jspain] The attached sample app looks identical between iOS and Mobile Web. Furthermore, no where in the code or the Alloy generated code is a call to setBackgroundImage(). So, again, please attach a relevant test case that demonstrates the issue described in the ticket. :)
  5. Chris Barber 2014-02-05

    Furthermore, adding the following to your example's button click handler works just fine:
       $.top.setBackgroundImage('logo.jpg');
       
    Resolving as cannot reproduce.
  6. Chris Barber 2014-02-26

    OK, this is valid. I have a fix, just need to PR it.
  7. Chris Barber 2014-02-26

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5386 3.2.x hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5387
  8. Tim Poulsen 2014-02-27

    A test app built with PR 5387 fails to launch in the emulator (see http://note.io/1cd2KUa), yet when built with master (not PR5386) it launches fine. I don't think this is a setup issue on my end.
  9. Satyam Sekhri 2014-03-11

    The background image set on a view, in the xml or tss or through a handler in the controller, is rendered correctly. Verified on: Windows 8.1 Appcelerator Studio, build: 3.2.1.201402061120 Titanium SDK, build: 3.2.1.v20140307150906 (Windows Hybrid), 3.3.0.v20140310170858 CLI: 3.2.1 Alloy: 1.3.1 Windows Phone 8 Emulator
  10. Chris Barber 2014-04-17

    Reopening to set time spent.

JSON Source