[TIMOB-16374] Windows Hybrid: setBackgroundImage does not render on Windows 8 Builds
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-04-17T21:35:53.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2014 Sprint 04, 2014 Sprint 04 Core, Release 3.3.0 |
Components | Windows Hybrid |
Labels | Windows, module_hybrid, qe-testadded, triage |
Reporter | Jamil Spain |
Assignee | Chris Barber |
Created | 2014-02-04T22:37:36.000+0000 |
Updated | 2014-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
I can upload a test app this evening if you need me to
[~jspain] Yes, please attach a test case. That will save a bunch of time.
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.
[~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. :)
Furthermore, adding the following to your example's button click handler works just fine:
Resolving as cannot reproduce.
OK, this is valid. I have a fix, just need to PR it.
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
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.
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
Reopening to set time spent.