-
16 Aug 2011 12:24 PM #1
Unanswered: Draw: image tag problem - src filename cutoff
Unanswered: Draw: image tag problem - src filename cutoff
Try to learn sencha touch and chart/draw and able to draw simple shapes. However, Found out not able to add 'image'. Google chrome has error: GET http://192.168.30.63:88/CroixDeFer.JP 404 (Not Found)
Looks the src filename is cutoff by one. This may be a bug?
It is fine to use Ext4 to add image like this:
Thank you.PHP Code:xtype: 'sprite',
type: 'image',
src: '/CroixDeFer.JPG',
x: 0,
y: 0,
width: 400,
height: 300
Jimmy
-
16 Aug 2011 12:26 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
- Answers
- 17
Definitely a bug. Can you try double-quoting this for the moment?
src: '"/CroixDeFer.JPG"'
-
16 Aug 2011 1:02 PM #3
Thanks for the quick replay. Just want to give up touch chart/draw.
It works with: src: '"/CroixDeFer.JPG"' .
Notice a few different between touch chart/draw and Ext4 chart/draw:
(1) If put draw items inside a panel, afterrender event for draw canvas is after the panel's afterrender event, it will not get draw canvas surface if listen panel's afterrender event for touch chart/draw. -> This may be a problem.
While For Ext4 chart/draw, afterrender event for draw canvas is before the panel's afterrender event -> This works fine.
(2) Document about Draw: Ext.create('Ext.draw.Component', { ... is not work for touch chart/draw, but works for Ext4 chart/draw.
That's means code between Ext4 chart/draw and touch char/draw is not compatible yet.
Thank you the help.
Best regards,
Jimmy
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote