Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8895975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:55:25+00:00 2026-06-14T23:55:25+00:00

My panel with border layout looks like this: var oSplitPanel = Ext.create(‘Ext.panel.Panel’, { lid

  • 0
  1. My panel with border layout looks like this:

    var oSplitPanel = Ext.create('Ext.panel.Panel', {
     lid   : 'splitpanel',
     layout: 'border',
     border: 0,
     style: { border: 0 }
     height: 150,
     items: [{
       split: true,
       flex: 1,
       region: 'west',
       xtype: 'panel',
       lid: 'panelwest',
       layout: 'fit',
       minWidth: 200
     }]
    });
    
  2. Then another panel gets added to this west region panel:

    oSplitPanel.query('[lid=panelwest]')[0].add(oExplorerPanel);
    
  3. Then this split panel gets added to my main view:

    that.getView().add(oSplitPanel);
    
  4. Then in another function, I add the center panel:

    var oAddPanelRight = {
           split: true,
           flex: 3,
           region: 'center',
           xtype: 'panel',
           lid: 'panelcenter',
           layout: 'fit',
           border: 0
        };
    
    oSplitPanel.add(oAddPanelRight);
    

Problem:

Everything works perfect this way, however I want to change (limit) the splitter’s own width (this splitter is in between west and center panels to resize their width).

What I tried:

  1. Try to change the width of splitters:

     listeners: {
        afterrender: function() {
           // error following, 'splitters' does not exist
           oSplitPanel.layout.splitters.west.setWidth(1);
           oSplitPanel.doLayout();
        }
     }
    
  2. Adding a negative margin to the center panel:

             // Tried this:
             margin: '0 0 0 -4'
    
             // And that:
             style: {
                border: 0,
                marginLeft: '-3px'
             }
    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:55:26+00:00Added an answer on June 14, 2026 at 11:55 pm

    Your oSplitPanel object/instance does not have the split param set to true and has therefor no splitter applied. The splitter get applied to oAddPanelRight object/instance and the nested panel of the oSplitPanel, maybe also to the panel you add later. Can’t tell that.

    So you just looked at the wrong class.

    Btw. to get a splitter for the class itself you don’t need look at oSplitPanel.layout.splitters Just look at the splitter prop of the class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a border layout whose center panel is defined like the below. {
i have the problem with displaying fields on form var test = Ext.create('Ext.form.Panel', {
(EXT 3) I have moved from an hbox layout to a border layout. All
so I have some code that looks like this: import java.awt.BorderLayout; import java.awt.Component; import
so I have a section of code that looks like this... public IPGUI() {
EXT V. 3.01 I have a view port with border layout. The center region
I want to create a dockedItem toolbar after the panel has been created: Ext.onReady(function()
Is there any way to change the BackColor of the border of a panel
Control Panel -> Security Center I really like the components/controls which are used to
I do have a screen in which i placed 3 panels like Main Panel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.