1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    118
    Vote Rating
    0
    plitvak is on a distinguished road

      0  

    Default [FIXED] Dialog - setting size before show doesn't work on second call

    [FIXED] Dialog - setting size before show doesn't work on second call


    Here is the code:
    Code:
            final Dialog testD = new Dialog()
            {
                {
                    this.setButtons( Dialog.OKCANCEL );
                    this.setHideOnButtonClick( true );
                    this.setHeading( "Test" );
                }
    
                @Override
                protected void onRender( Element parent, int pos )
                {
                    super.onRender( parent, pos );
    
                    this.setLayout( new FitLayout() );
    
                    LayoutContainer lc = new LayoutContainer();
                    lc.setLayout( new RowLayout() { {this.monitorResize = true;} } );
    
                    DataList dl = new DataList();
    
                    for( int i = 0; i < 50; i++ ) {
                        dl.add( new DataListItem("_"+i) );
                    }
    
                    lc.add( new TextBox(), new RowData( 1, Style.DEFAULT ) );
                    lc.add( dl, new RowData( 1, 1 ) );
    
                    this.add( lc );
                }
            };
    
            Button bt = new Button( "Show" );
            bt.addSelectionListener( new SelectionListener<ComponentEvent>(){
                public void componentSelected( ComponentEvent ce ) {
                    testD.setWidth( 240 );
                    testD.setHeight( 280 );
                    testD.show();
                }
            } );
    First click on button is fine, second shows broken UI but if you resize the dialog it fixes itself.

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,241
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fix is in SVN.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    118
    Vote Rating
    0
    plitvak is on a distinguished road

      0  

    Default


    Thanks!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar