1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default Want to keep the ext gwt application in middle of the browser

    Want to keep the ext gwt application in middle of the browser


    Hello,

    I want to keep my web application(with fixed width and variable height) in the middle of the browser. Is there any way to do that?

    Regards
    Arup

  2. #2
    Ext User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    viva is on a distinguished road

      0  

    Default


    You can use the CenterLayout. just this:
    1. import com.extjs.gxt.ui.client.widget.ContentPanel;
    2. import com.extjs.gxt.ui.client.widget.LayoutContainer;
    3. import com.extjs.gxt.ui.client.widget.layout.CenterLayout;
    4. public class CenterLayoutExample extends LayoutContainer {
    5. public CenterLayoutExample() {
    6. setLayout(new CenterLayout());
    7. ContentPanel panel = new ContentPanel();
    8. panel.setBodyStyle("padding: 6px");
    9. panel.setFrame(true);
    10. panel.setHeading("CenterLayout");
    11. panel.addText("I should be centered");
    12. panel.setWidth(200);
    13. add(panel);
    14. }
    15. }

  3. #3
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default


    Thanks,

    Actually I have an existing base layout which is broderlayout for my application. I can not change it. How to wrap it in center layout?

    Regards
    Arup

  4. #4
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    you may add your existing "base layout" to a container that has a center layout?

  5. #5
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default


    I have tried that. But if Base container is not ViewPort then it does not work.

    Base(Parent) Viewport + center layout

    Application(Child) LayoutContainer + border Layout


    Works

    Base(Parent) LayoutContainer + center layout

    Application(Child) LayoutContainer + border Layout

    does not

    We want to make a fix width and dynamic height(scrollable) application. But Viewport will not allow me to have dynamic height application.

    Regards
    Arup

  6. #6
    Ext User
    Join Date
    Apr 2009
    Posts
    33
    Vote Rating
    0
    brendand is on a distinguished road

      0  

    Default


    Is there a way to have variable width, between to ranges. Eg, between 800 and 1200px wide?

Thread Participants: 3

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