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

    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
    Sencha 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:
    [LIST=1][*]import com.extjs.gxt.ui.client.widget.ContentPanel; [*]import com.extjs.gxt.ui.client.widget.LayoutContainer; [*]import com.extjs.gxt.ui.client.widget.layout.CenterLayout; [*] [*]public class CenterLayoutExample extends LayoutContainer { [*] [*] public CenterLayoutExample() { [*] setLayout(new CenterLayout()); [*] [*] ContentPanel panel = new ContentPanel(); [*] panel.setBodyStyle(

  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