Announcement

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

    DialogProperties: Height of SC.ask

    If you are using the out of the dialogs like "SC.ask" you can assign dialog properties. If you do this once and if you are changing the height, this height will remain for all upcoming dialogs... even if you do not assign the DialogProperties again.

    Here is an code example:

    Code:
    Dialog dialog = new Dialog();
            dialog.setWidth( 800 );
            dialog.setHeight( 600 );
    
            SC.ask( "Test 1", "This is a correct dialog with fix width and height", new BooleanCallback()
            {
    
                @Override
                public void execute( Boolean value )
                {
                    if ( value == true )
                    {
                        SC.ask( "Test 2",
                                "This is a wrong dialog with the standard width... but it keeps the height of the previous dialog. Here is are no dialog properties assigned",
                                new BooleanCallback()
                                {
    
                                    @Override
                                    public void execute( Boolean value )
                                    {
                                        // TODO Auto-generated method stub
    
                                    }
                                } );
                    }
                }
            }, dialog );
    OS: Ubuntu
    Browser: Latest Stable Chrome
    SmartGWT: 12.0p (Build Sat, 31.03.2018)

    Thanks
    Andy


Working...
X