我想更改工具提示的位置以在按鈕上顯示它。我在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];
}
})
});