1
现在我无法获得简单的拉斐尔图形在extJS面板中显示。拉斐尔图形没有在IE8中显示
afterRender: function(){
var size = Math.min(this.getHeight(), this.getWidth());
this.innerEl = this.el.createChild({
cls : 'ext-ux-clock-inner'
});
this.canvas = Raphael(this.innerEl.dom, size, size);
var circle = this.canvas.text(50, 40, 'test').attr({
font : '14px Helvetica, Arial',
stroke : "none",
fill : '#fff'
});
TimelineWindowPanel.superclass.afterRender.apply(this,arguments);
}
在Firefox和Chrome中文本显示正常,但我似乎无法让这个文本显示在IE8中。我试过使用未压缩的版本以及缩小版本,但没有运气。有人知道为什么拉斐尔不能与IE8一起使用extJS?
编辑: 如果我改变IE8到兼容模式下,它显示了拉斐尔图形
@Albinnoswordfish setInterval将继续调用您的代码。你可能已经知道了。如果您只想调用一次,请使用setTimeout。 – 2011-03-01 21:21:20