Announcement

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

    ModalMask on SC.warn/ask

    SmartGWT 2.2; tested with Firefox 3.6.8, SRWare Iron 6.0.475 and IE8.


    This works as expected:
    Code:
    Dialog dialog = new Dialog();
         dialog.setShowModalMask(true);
    SC.warn("Error", "text", null, dialog);
    This does not, the Dialog is modal but the modal mask is not applied:
    Code:
    Dialog dialog = new Dialog();
         dialog.setShowModalMask(true);
    SC.ask("Error", "text", null, dialog);
    Any ideas?

    #2
    Works for us. Something else must be going on here.
    Sample code:
    Code:
    	public void onModuleLoad() {
    
    			IButton b1 = new IButton("warn");
    			b1.addClickHandler(new ClickHandler() {
    				
    				@Override
    				public void onClick(ClickEvent event) {
    					Dialog dialog = new Dialog();
    				    dialog.setShowModalMask(true);
    				    SC.warn("Error", "text", null, dialog);
    					
    				}
    			});
    
    			IButton b2 = new IButton("ask");
    			b2.setTop(200);
    			b2.addClickHandler(new ClickHandler() {
    				
    				@Override
    				public void onClick(ClickEvent event) {
    					Dialog dialog = new Dialog();
    				    dialog.setShowModalMask(true);
    				    SC.ask("Error", "text", null, dialog);
    				}
    			});
    			b1.show();
    			b2.show();
    
    			
    		}

    Comment


      #3
      Testing with the example you just posted, I realized it only happens when I click the "ask" button first; once the "warn" button is clicked once, it works.

      The reason I didn't realise it before was that I was changing them on the application, but never had them both at the same time...
      Attached Files

      Comment


        #4
        This is working for us regardless of whether you load the page and click "ask" first or load the page and click "warn" first.
        We'd recommend verifying you're testing against the latest code (grab the latest nightly from here).

        If you continue to see the problem we'll need a way to reproduce it before we can help. Probably best to give us all the info you can -- the browser/OS where you're seeing the bug; the version of GWT you're running against; whether it happens in development mode only or if it also happens in compiled mode; your bootstrap HTML file (plus any .css files you load into that file) and your .gwt.xml project file.

        Comment


          #5
          Indeed, when running with the latest nightly (from October 15th) the problem does not happen; only when running with version 2.2 (from May 18th).

          Thanks for the help!

          Comment

          Working...
          X