We created the following wait dialog and styled it the way we wanted in version 2.4. When we started the upgrade process to 2.5 or 3.0, we see a bunch of white space that was introduced that we can't seem to get rid of. It shows up outside messageBox HLayout.
We are in the process of evaluating whether or not to purchase an enterprise license so any help/ideas would be greatly appreciated. I have tried setting margin and padding to zero on everything outside the label, but it didn't help. Ideally, we want the double border to be the edge of the modal.
Thanks in advance.
We are in the process of evaluating whether or not to purchase an enterprise license so any help/ideas would be greatly appreciated. I have tried setting margin and padding to zero on everything outside the label, but it didn't help. Ideally, we want the double border to be the edge of the modal.
Code:
public class GhxWaitModalWindow extends Dialog implements I18N { private static final String loadingIcon = Page.getSkinImgDir() + "loadingSmall.gif";; private static final String messageBoxBgColor = "#fff"; private HLayout messageBox = new HLayout(); private Label label = new Label(); private static GhxWaitModalWindow singleton; public static void show(String message) { initAndShowMessage(message, true); } public static void show(String message, boolean showLoadingIcon) { initAndShowMessage(message, showLoadingIcon); } public static void close() { if (singleton != null) { singleton.hide(); } } private static void initAndShowMessage(String message, boolean showLoadingIcon) { if (singleton == null) { singleton = new GhxWaitModalWindow(); } singleton.showMessage(message,showLoadingIcon); } private GhxWaitModalWindow() { super(); setIsModal(true); setShowModalMask(true); setShowEdges(false); setShowTitle(false); setShowCloseButton(false); setShowFooter(false); setShowHeader(false); setShowResizer(false); setShowMinimizeButton(false); setShowStatusBar(false); setShowTitle(false); setShowToolbar(false); setShowStatusBar(false); setShowShadow(true); setAutoHeight(); setAutoSize(true); setLeaveScrollbarGap(false); label.setWrap(false); label.setBorder("3px double #999"); label.setAlign(Alignment.CENTER); label.setAutoFit(true); label.setHeight(16); label.setPadding(14); label.setBackgroundColor(messageBoxBgColor); messageBox.setAutoHeight(); messageBox.setAutoWidth(); messageBox.setMembers(label); addItem(messageBox); } private void showMessage(String message, boolean showLoadingIcon) { label.setContents(message); if (showLoadingIcon) { label.setIcon(loadingIcon); } else { label.setIcon(null); } show(); } }