Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Oct 2008
    Location
    Barcelona
    Posts
    17
    Vote Rating
    0
    Yukideluxe is on a distinguished road

      0  

    Default [CLOSED [2.0 M1/M2/M3] RowLayout problem

    [CLOSED [2.0 M1/M2/M3] RowLayout problem


    I don't know how to explain this problem but I'll do my best. I hope you understand me! hehe

    - Detailed description of the problem:

    I have a window with FitLayout setted. In this window I've attached a LayoutContainer which uses a RowLayout where I've added different LayoutContainers.
    One container is added as RowData(1,1) and the other ones are added as RowData(1,-1).
    One panel is not visible and I want to show it when the user clicks a button. (See example, please)

    Here comes my problem, when I set visible this panel, the container added with RowData(1,1) does not resize properly. It didn't happen with 1.2.x!

    In this example when I click to "Show blue panel" the button disappears and the panel is not viewed propertly. If I resize the window then I obtain what I want!! The three panels, the button and the red one with the proper size.

    - GXT version: 2.0 M1/M2/M3
    - Host mode / web mode / both: Both
    - Browser and version: IE7, Firefox 3.0, Chrome, Safari, Opera
    - Operating System: Windows
    - Sample code:

    Code:
    public class Test implements EntryPoint {
    
        private LayoutContainer three;
        
        @Override
        public void onModuleLoad() {
                   
            final Window window = new Window();
            window.setLayout(new FitLayout());
            window.setSize("500", "400");
            
            LayoutContainer main = new LayoutContainer();
            main.setLayout(new RowLayout());
            
            LayoutContainer one = new LayoutContainer();
            one.setHeight("100");
            one.setStyleAttribute("background", "green");
            main.add(one, new RowData(1,-1));
            
            LayoutContainer two = new LayoutContainer();
            two.setStyleAttribute("background", "red");
            main.add(two, new RowData(1,1));
            
            three = new LayoutContainer();
            three.setHeight("100");
            three.setVisible(false);
            three.setStyleAttribute("background", "blue");
            main.add(three, new RowData(1,-1));
            
            Button b = new Button("Show Blue Panel", new SelectionListener<ButtonEvent>(){
                @Override
                public void componentSelected(ButtonEvent ce) {
                    three.setVisible(true);
                }            
            }); 
            
            main.add(b, new RowData(1,-1));        
            
            window.add(main);
            
            ButtonBar buttons = new ButtonBar();          
            buttons.add(new Button("Show", new SelectionListener<ButtonEvent>() {  
                public void componentSelected(ButtonEvent ce) {  
                    window.show();  
                }  
            })); 
    
            RootPanel.get().add(buttons);
        }
    
    }
    Thank you!

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I am closing this issue. There is an issue in your code. After showing your panel you need to call for layout with the force attribute set to true:

    Code:
     main.layout(true);

  3. #3
    Ext User
    Join Date
    Oct 2008
    Location
    Barcelona
    Posts
    17
    Vote Rating
    0
    Yukideluxe is on a distinguished road

      0  

    Default


    I thought that it was a problem because in the previous versions I didn't have to make this call. Thank you for the quick answer!

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    GXT2 has introduced several new caching mechanism to improve speed. GXT 1 just always called layout (which is good, but takes times, which is not good)

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