问题
I am using a Wicket modal window in my application. Is there any way to make it un-draggable? Any information will be very helpful to me. Thank you.
回答1:
Unfortunately, there is no support for this, at least out of the box. It is possible to prevent the user from resizing the window, but draggability is not affected by that.
Full Javadoc for ModalWindow
in version 1.4.7 is here.
回答2:
As explained by Lord Torgamus, the standard ModalWindow
can not be made un-draggable.
As an alternative, however, you could use the wiquery dialog. It offers the same confiuration options as the JQuery UI Dialog. Among other things, you can control draggability.
来源:https://stackoverflow.com/questions/4932232/how-can-i-make-a-wicket-modal-window-un-draggable