1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    4
    Vote Rating
    0
    Eladi is on a distinguished road

      0  

    Default set fixed width

    set fixed width


    How can I set the center region of layout:'border', width to be fixed
    and not resizable.


  2. #2
    Sencha Premium Member
    Join Date
    Jan 2009
    Posts
    329
    Vote Rating
    49
    firefoxSafari is a jewel in the rough firefoxSafari is a jewel in the rough firefoxSafari is a jewel in the rough

      0  

    Default


    I don't think you can resize the various regions (at runtime, anyway ; at design time anything goes right now) if the split attribute of the Ext.layout.BorderLayout properties isn't checked.

    Is it checked in your case and have you tried unchecking it?

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,308
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    The center region of a border layout by its nature is not fixed width.

    It will stretch to accommodate the rest of the area available to it. (minus the east and west regions).

    Eladi, if you post a sketch or screenshot of the layout you are trying to achieve we may be able to better advise you as to what layout you really want. I suspect maybe you want an hbox layout.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  4. #4
    Ext User
    Join Date
    Apr 2010
    Posts
    4
    Vote Rating
    0
    Eladi is on a distinguished road

      0  

    Default


    I need 3 panels (west center & east) such that the west panel will be collapsible and when it closed the center panel width stay the same (just move left) and only the east panel width increase.
    Can I use the border layout to implement this or maybe I should use another layout? and how.

  5. #5
    Sencha - Management Team abe.elias's Avatar
    Join Date
    Aug 2008
    Location
    Palo Alto, CA
    Posts
    406
    Vote Rating
    4
    abe.elias is on a distinguished road

      0  

    Default Getting creative

    Getting creative


    There are some limitations with this approach, but see if this helps.
    Attached Images
    Attached Files