Last active
December 31, 2015 00:09
-
-
Save MotiurRahman/7905008 to your computer and use it in GitHub Desktop.
Mobile Web: ImageView doesn't work properly with images assigned as files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*Hi , I have tested this jira ticket and it's not a bug. It’s image Show properly in Mozilla Firefox Web Browser. | |
| Testing Environment: | |
| Titanium SDK: 3.1.3 | |
| Web Browser: Mozila Firefox 25.0.1 | |
| Steps to Reproduce: | |
| 1. Create a simple project. | |
| 2. Paste this sample code in app.js file. | |
| 3. Create a image folder in resource directory and paste a image | |
| 4. After all run this in Web Browser | |
| */ | |
| // Create a window | |
| var win = Ti.UI.createWindow({ | |
| backgroundColor : '#000', | |
| title : 'Show Web Image', | |
| navBarHidden : false | |
| }); | |
| // create a imageView | |
| var imageView = Ti.UI.createImageView({ | |
| image : Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, "/images/MyPicture.jpg"), | |
| width : 100, | |
| height : 100 | |
| }); | |
| // add to parent View | |
| win.add(imageView); | |
| win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment