extjs4.1自定义组件IE兼容性错误(chrome上没问题,排除逗号问题)
麻烦大侠解惑!IE调试时显示:[E]Youhavesetframe:trueexplicityonthiscomponent(header)anditdoesnothav...
麻烦大侠解惑!IE调试时显示:[E] You have set frame: true explicity on this component (header) and it does not have any framing defined in the CSS template. In this case IE cannot figure out what sizes to use and thus framing on this component will be disabled.
自定义组件就是一个TAB,ext4.1小部分代码如下:
Ext.define('Ext.ux.ManagedIframe.Component', {
/* Begin Definitions */
extend : 'Ext.Component',
alias : 'widget.miframe',
autoScroll : true,
frameStyle : null,
frameCls : 'ux-miframe',
shimCls : 'ux-miframe-shim',
shimUrl : Ext.BLANK_IMAGE_URL,
src : null,
autoMask : true,
maskMessage : 'Loading...',
resetUrl : 'javascript:void(0);',
ariaRole : 'presentation',
unsupportedText : 'Frames are disabled',
bubbleEvents: ['documentloaded', 'load'],
initComponent : function() {
var me=this,
frameStyle = Ext.isString(me.frameStyle)
? Ext.core.Element.parseStyles(me.frameStyle)
: me.frameStyle || {};
me.autoEl = {
cn: [
Ext.applyIf(
me.frameConfig || {},
{
tag : 'iframe',
cls : me.frameCls,
style : Ext.apply(
{
"height" : "100%",
"width" : "100%"
},
frameStyle
), 展开
自定义组件就是一个TAB,ext4.1小部分代码如下:
Ext.define('Ext.ux.ManagedIframe.Component', {
/* Begin Definitions */
extend : 'Ext.Component',
alias : 'widget.miframe',
autoScroll : true,
frameStyle : null,
frameCls : 'ux-miframe',
shimCls : 'ux-miframe-shim',
shimUrl : Ext.BLANK_IMAGE_URL,
src : null,
autoMask : true,
maskMessage : 'Loading...',
resetUrl : 'javascript:void(0);',
ariaRole : 'presentation',
unsupportedText : 'Frames are disabled',
bubbleEvents: ['documentloaded', 'load'],
initComponent : function() {
var me=this,
frameStyle = Ext.isString(me.frameStyle)
? Ext.core.Element.parseStyles(me.frameStyle)
: me.frameStyle || {};
me.autoEl = {
cn: [
Ext.applyIf(
me.frameConfig || {},
{
tag : 'iframe',
cls : me.frameCls,
style : Ext.apply(
{
"height" : "100%",
"width" : "100%"
},
frameStyle
), 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询