Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    St. Louis
    Posts
    212
    Vote Rating
    9
    jimmylu98 will become famous soon enough

      0  

    Default 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:

    PHP Code:
                xtype'sprite',
                
    type'image',
                
    src'/CroixDeFer.JPG',
                
    x0,
                
    y0,
                
    width400,
                
    height300 
    Thank you.
    Jimmy

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Answers
    17
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Definitely a bug. Can you try double-quoting this for the moment?

    src: '"/CroixDeFer.JPG"'

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    St. Louis
    Posts
    212
    Vote Rating
    9
    jimmylu98 will become famous soon enough

      0  

    Default


    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

Thread Participants: 1