Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    8
    Vote Rating
    2
    liu78778 is on a distinguished road

      0  

    Default [4.1.0]Ext.draw.Sprite the svg path does not display properly

    [4.1.0]Ext.draw.Sprite the svg path does not display properly


    REQUIRED INFORMATION





    Ext version tested:
    • Ext 4.1.0
    Browser versions tested against:
    • Chrome 18
    • IE9
    • FF11.0 (firebug 1.9.2 installed)
    Description:
    • Ext.draw.Sprite the path does not display properly
    Steps to reproduce the problem:
    • create a draw component with 'path' item in it
    • the path has a not completely horizontal or vertical line
    • then on Screen´╝îthe line is very very large.
    Test Case:




    Code:
    Ext.onReady(function() {
    
    
        var viewpanel = Ext.create('Ext.panel.Panel', {
            width: 300,
            height: 200,
            title: 'Test',
            layout: 'fit',
            style : {
                left : '10px'
            },
            renderTo: Ext.getBody()
        });
    
    
        var line = Ext.create('Ext.draw.Component', {
            viewBox: true,
            items: [{
                type: 'path',
                path: "M100 41 L150 40",    //if the value is "M100 40 L150 40", it's ok.
                "stroke-width": "1",
                stroke: "#000"
            }]
        });
    
    
        viewpanel.add(line);
    
    
    });



    HELPFUL INFORMATION




    Screenshot or Video:Operating System:
    • Win7 U

  2. #2
    Sencha User
    Join Date
    Sep 2008
    Posts
    8
    Vote Rating
    2
    liu78778 is on a distinguished road

      0  

    Default


    Quote Originally Posted by mikhail.tatsky View Post
    That is not bug.

    Set viewBox: false
    Look at the pictures, is that normal? Why are they so different? Only change a little bit number.

Tags for this Thread