Threaded View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    14
    Vote Rating
    0
    hermann.rangamana is on a distinguished road

      0  

    Exclamation CenterLayoutContainer : Container misses the Resize command ?

    CenterLayoutContainer : Container misses the Resize command ?


    On gxt 3.0.0 beta 2, i have an simple CenterLayoutContainer with a single panel inside it (a copy-paste from the showcase actually). But i was surprised, the content of my container is not centered, but located in the upper-left side of the my screen!
    Here is my listing

    Code:
    public class CenterLayoutExample implements EntryPoint {
    
    
        public void onModuleLoad() {
            CenterLayoutContainer con = new CenterLayoutContainer();
            ContentPanel panel = new ContentPanel();
            panel.setBodyStyle("padding: 6px");
            panel.setHeadingText("CenterLayout");
            panel.add(new Label("I should be centered"));
            panel.setWidth(200);
            con.add(panel);
            RootLayoutPanel.get().add(con);
        }
    }
    BUT, if i manually resize the browser window, then the container is moved to the center of my browser window. (cf images attached : first image, at the startup of the application ; second image, after i manually resize the application).
    If i add a deffered command to trigger a resize operation on the RootLayoutPanel, the container is immediately when i start the application.

    Code:
    Scheduler.get().scheduleDeferred(new ScheduledCommand() {
        public void execute() {
            RootLayoutPanel.get().onResize();
        }
    });
    So my assumption is that the container ignores the some resize operation at the startup of the application ...
    Attached Images

Thread Participants: 2

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