GWT 中的可拖动弹出窗口?

Draggable popup in GWT?

我在使用Dialog Box 实现Draggable Popup Panel 的时候遇到了一个问题,当DialogBox 弹出时导致底页的文字无法复制。如何解决这个问题?

默认DialogBoxmodal,这意味着:

keyboard and mouse events for widgets not contained by the dialog should be ignored

因此您不能select也不能在对话框外复制文本。

您可以通过调用 dialogBox.setModal(false); 或将 modal 值传递给以下构造函数之一来更改它:

DialogBox(boolean autoHide, boolean modal)
DialogBox(boolean autoHide, boolean modal, DialogBox.Caption captionWidget)