PDA

View Full Version : Modifying Tooltip Shadows does not have any effect



Alinanila
27 Dec 2010, 5:29 AM
Hello,
I want to modify the tooltip shadow to "frame" - but any setting concerning shadows does result in a change. I tried modifying and disabling the shadow... - maybe this is a bug?

This is my code:


this.tip = new Ext.ToolTip({
target: this.grid.body,
delegate:".additionalinfo-tooltip",
renderTo: document.body,
anchor:"top",
anchorToTarget:true,
trackMouse:true,
autoHide:false, // just for test
closable:true, // just for test
dismissDelay:0, // just for test
shadow:false, // no effect - why?
shadowOffset:0, // no effect - why?
listeners: {
beforeshow: function(tip){
tip.el.disableShadow(); // the only way to disable/modify the shadow. otherwise the shadow is always displayed in the same way
// do something here...

}.createDelegate(this)
}
});

Regards, Alina

Condor
27 Dec 2010, 5:59 AM
'shadow' is not a ToolTip config option, it's a config option for the inner layer, e.g.

floating: {shadow:false, shim:true, useDisplay:true, constrain:false}