我想更改工具提示的位置以在按钮上显示它。我在ExtJs的论坛中提到了下面的方法。它不起作用,我不能覆盖getTargetXY方法,工具提示始终显示在同一位置。你有任何解决方案?如何更改工具提示在ExtJs 3.3中的位置
this.desktopButton = new Ext.Button({
icon: "arrow_in.png",
scope: this,
handler: this.desktopButtonHandler,
tooltip: new Ext.ToolTip({
text: 'Message',
getTargetXY: function() {
return [100, 100];
}
})
});