Hi there! I'm trying to add an animated gif to a modal window, but the image displayed are not running the animation.
Is there anything special that should be done to the Img to get it working?
Is there anything special that should be done to the Img to get it working?
Code:
waitingWindow = new Window(); Img img = new Img("../waiting.gif", 32, 32); img.setImageType(ImageStyle.STRETCH); img.setAlign(Alignment.CENTER); img.setValign(VerticalAlignment.CENTER); waitingWindow.setShowCloseButton(false); waitingWindow.setAlign(Alignment.CENTER); waitingWindow.setAlign(VerticalAlignment.CENTER); waitingWindow.setShowMinimizeButton(false); waitingWindow.setShowBody(true); waitingWindow.setShowHeader(true); waitingWindow.setShowMaximizeButton(false); waitingWindow.setTitle(""); waitingWindow.setShowTitle(false); waitingWindow.setAutoCenter(true); waitingWindow.setCanDragReposition(false); waitingWindow.setCanDragResize(false); waitingWindow.setWidth(300); waitingWindow.setHeight(130); waitingWindow.setShowModalMask(true); waitingWindow.setIsModal(true); waitingWindow.addItem(img); waitingWindow.setOverflow(Overflow.HIDDEN);
Comment