Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gwt中文本区域的建议框_Gwt_Suggestbox - Fatal编程技术网

gwt中文本区域的建议框

gwt中文本区域的建议框,gwt,suggestbox,Gwt,Suggestbox,我希望suggestBox中的建议显示在文本区域的当前行下,因为默认情况下,它显示在整个文本区域下。如何实现这样的功能?查看的源代码,您可能需要实现自己的源代码,因为使用PopupPanel来显示建议,该建议位于建议框下方: // Show the popup under the TextBox. suggestionPopup.showRelativeTo(positionRelativeTo != null ? positionRelativeTo : su

我希望suggestBox中的建议显示在文本区域的当前行下,因为默认情况下,它显示在整个文本区域下。如何实现这样的功能?

查看的源代码,您可能需要实现自己的源代码,因为使用PopupPanel来显示建议,该建议位于建议框下方:

// Show the popup under the TextBox.
      suggestionPopup.showRelativeTo(positionRelativeTo != null 
          ? positionRelativeTo : suggestBox);

您的实现也可以使用PopupPanel,但它具有
setposition(x,y)
show()
而不是
showRelativeTo

现在还可以使用:
suggestionDisplay.setPositionRelativeTo(UIObject)