ecomfe / zrender

A lightweight graphic library providing 2d draw for Apache ECharts
https://ecomfe.github.io/zrender-doc/public/
BSD 3-Clause "New" or "Revised" License
6.05k stars 1.56k forks source link

IE11下绘制对象时,对象被剪切掉,针对部分IE #206

Open LianYue1 opened 8 years ago

LianYue1 commented 8 years ago
<script type="text/javascript">
    require.config({
        packages: [
            {
                name: 'zrender',
                location: 'zrender-3.1.3/src',
                main: 'zrender'
            }
        ]
    });
    require(
        [
            "zrender",
            "zrender/graphic/shape/Rect",
        ],

   function (zrender, Rect) {
       zerObject = zrender;
       var zr = zerObject.init(document.getElementById("main"), {
           renderer: 'canvas'
       });

       var rect = new Rect({
           shape: {
               width: 500,
               height: 16700,
               x: 50,
               y: 50
           },
           position: [10, 10]
       });

       zr.add(rect);
       zr.refresh();
   });

div id="main" style="height:14700px;width:500px;border:1px solid red;"
carme007 commented 8 years ago

复现了,坐等大神解决,学习一下

Cogvr commented 8 years ago

我的IE11也有这个问题,求大神解决