Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT 5.0 - Modal Mask over Modal Mask not working

    SmartGWT 5.0 damaged feature "ModalMask over ModalMask". Same code in SmartGWT 4.0 works fine:

    Code:
    	@Override
        public void onModuleLoad()
    	{
    		VLayout layout = new VLayout();
    		
    		final Button showNextDialogButton = new Button("Show dialog with not working Modal Mask");
    		showNextDialogButton.setWidth(300);
    		showNextDialogButton.addClickHandler(new ClickHandler()
    		{
    			@Override
    			public void onClick(ClickEvent aEvent)
    			{
    				Dialog dialog = getNextDialog();
    				dialog.draw();
    			}
    		});
    		
    		Button showWindow = new Button("Show Primary window");
    		showWindow.setWidth(300);
    		showWindow.addClickHandler(new ClickHandler()
    		{
    			@Override
    			public void onClick(ClickEvent aEvent)
    			{
    				Window primaryWindow = getPrimaryWindow(showNextDialogButton);
    				primaryWindow.show();
    			}
    		});
    		
    		layout.setMembers(showWindow);
    		
    		layout.draw();
    	}
    	
    	private Window getPrimaryWindow(Button aButton)
    	{
    		Window result = new Window();
    		result.setWidth(640);
    		result.setHeight(480);
    		result.setTitle("MODAL MASK OK");
    		result.setShowMinimizeButton(Boolean.FALSE);
    		result.setIsModal(Boolean.TRUE);
    		result.setShowModalMask(Boolean.TRUE);
    		//result.setModalMaskOpacity(25);
    		result.setAutoCenter(Boolean.TRUE);
    		result.centerInPage();
    		
    		result.addItem(aButton);
    		return result;
    	}
    	
    	private Dialog getNextDialog()
    	{
    		final Dialog result = new Dialog();
    		result.setTitle("MISSING MODAL MASK !!!");
    		result.setMessage("THIS DIALOG DOES NOT HAVE MODAL MASK");
    		result.setIsModal(Boolean.TRUE);
    		result.setShowModalMask(Boolean.TRUE);
    		//dialog.setModalMaskOpacity(25);
    		result.setIcon("[SKIN]say.png");
    		
    		return result;
    	}

    #2
    Thanks for the clear test case. This issue is now fixed - please try the next nightly build, dated Nov 11 or above

    Regards
    Isomorphic Software

    Comment

    Working...
    X