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

      0  

    Default [FIXED] RowLayout resizing issues

    [FIXED] RowLayout resizing issues


    Here is the example code:

    Code:
    final Dialog testD = new Dialog()
            {
                {
                    this.setButtons( Dialog.OKCANCEL );
                    this.setHideOnButtonClick( true );
                    this.setWidth( 240 );
                    this.setHeight( 280 );
                    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() );
    
                    TabPanel tp = new TabPanel();
                    TabItem ti = new TabItem();
                    ti.setText( "Test Tab" );
    
                    tp.add(ti);
    
                    lc.add( new TextBox(), new RowData( 1, Style.DEFAULT ) );
                    lc.add( tp, new RowData( 1, 1 ) ); 
    
                    this.add( lc );
                }
            };
            
            testD.show();
    The dialog shows with content correctly sized but on resize the layout doesn't execute.


    The following code fixes this particular issue but this is just a workaround for the problem:

    Code:
            testD.addListener( Events.Resize, new Listener<ComponentEvent>(){
                public void handleEvent( ComponentEvent be ) {
                    testD.layout();
                }
            } );

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

      0  

    Default


    RowLayout was not monitoring container resizing. Fix is in SVN.

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

      0  

    Default


    Thanks!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi