myExtJsUname
21 Nov 2012, 2:03 PM
Hello all,
I am unable to make a toolbar in my application transparent in IE. It works in FF...as you can see here:
40233
The code for the very cut down example you see above of what I am trying to do in my app is included here:
<html>
<head>
<title>Transparent Toolbar</title>
<link rel="stylesheet" type="text/css" href="/EMAF/ext-4.1.1/resources/css/ext-all.css">
<script type="text/javascript" src="/EMAF/ext-4.1.1/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.application(
{
name: "TransparentToolbar"
,launch: function(){
var toolbar = Ext.create(
"Ext.toolbar.Toolbar"
,{
height: "50px"
,region: "north"
,style: {
"background": "transparent"
}
}
);
var panel = Ext.create(
"Ext.panel.Panel"
,{
region: "center"
}
);
var container = Ext.create(
"Ext.container.Container"
,{
renderTo: Ext.Element.get('extjsApp')
,layout: "border"
,height: "100%"
,items:[
toolbar
,panel
]
,style: {
"background": "transparent"
}
}
);
}
}
);
</script>
</head>
<body>
<div id="extjsApp"></div>
</body>
</html>
I found a thread that talks about the Toolbar not accepting styling in IE (http://www.sencha.com/forum/showthread.php?193519-Styling-of-Ext.toolbar.Toolbar-fails-in-Internet-Explorer), but I don't think it applies to my problem as I am not trying to apply my own CSS. And, besides, that "bug" was closed as un-reproduceable.
To be honest, I can't even get it to display properly by setting attributes directly in IE's Developer Tools.
Can anyone see what I'm missing in my configuration that would cause IE to ignore the transparency requested? It seems like it should be so simple...
Cheers,
jtm
I am unable to make a toolbar in my application transparent in IE. It works in FF...as you can see here:
40233
The code for the very cut down example you see above of what I am trying to do in my app is included here:
<html>
<head>
<title>Transparent Toolbar</title>
<link rel="stylesheet" type="text/css" href="/EMAF/ext-4.1.1/resources/css/ext-all.css">
<script type="text/javascript" src="/EMAF/ext-4.1.1/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.application(
{
name: "TransparentToolbar"
,launch: function(){
var toolbar = Ext.create(
"Ext.toolbar.Toolbar"
,{
height: "50px"
,region: "north"
,style: {
"background": "transparent"
}
}
);
var panel = Ext.create(
"Ext.panel.Panel"
,{
region: "center"
}
);
var container = Ext.create(
"Ext.container.Container"
,{
renderTo: Ext.Element.get('extjsApp')
,layout: "border"
,height: "100%"
,items:[
toolbar
,panel
]
,style: {
"background": "transparent"
}
}
);
}
}
);
</script>
</head>
<body>
<div id="extjsApp"></div>
</body>
</html>
I found a thread that talks about the Toolbar not accepting styling in IE (http://www.sencha.com/forum/showthread.php?193519-Styling-of-Ext.toolbar.Toolbar-fails-in-Internet-Explorer), but I don't think it applies to my problem as I am not trying to apply my own CSS. And, besides, that "bug" was closed as un-reproduceable.
To be honest, I can't even get it to display properly by setting attributes directly in IE's Developer Tools.
Can anyone see what I'm missing in my configuration that would cause IE to ignore the transparency requested? It seems like it should be so simple...
Cheers,
jtm