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 6705617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:25:29+00:00 2026-05-26T07:25:29+00:00

Lets suppose i have the following code snippet: Ext.create(‘Ext.container.Viewport’, { layout: ‘border’, renderTo: Ext.getBody(),

  • 0

Lets suppose i have the following code snippet:

Ext.create('Ext.container.Viewport', {
layout: 'border',
renderTo: Ext.getBody(),
items: [{
    region: 'north',
    html: '<h1 class="x-panel-header">Page Title</h1>',
    autoHeight: true,
    border: false,
    margins: '0 0 5 0'
}, {
    region: 'west',
    collapsible: true,
    title: 'Navigation',
    width: 150
    // could use a TreePanel or AccordionLayout for navigational items
}, {
    region: 'south',
    title: 'South Panel',
    collapsible: true,
    html: 'Information goes here',
    split: true,
    height: 100,
    minHeight: 100
}, {
    region: 'east',
    title: 'East Panel',
    collapsible: true,
    split: true,
    width: 150
}, {
    region: 'center',
    xtype: 'tabpanel', // TabPanel itself has no title
    activeTab: 0,      // First tab active by default
    items: {
        title: 'Default Tab',
        html: 'The first tab\'s content. Others may be added dynamically'
    }
}]
});

What i want to do is to have the north toolbar to be hidden automatically when the mouse is moved away from the north region and unhidden when the mouse is hovered on north region(exactly like autohide in windows start menu)

  • 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-05-26T07:25:29+00:00Added an answer on May 26, 2026 at 7:25 am

    You could use the collapse functionality to achieve this. Create a placeholder that replaces the standard Header:

    var placeHolder = Ext.create('Ext.panel.Panel', {
      height: 5,
      listeners: {
        mouseover : {
          element : 'el',
          fn : function(){
            //Expand the north region on mouseover
            Ext.getCmp('region-north').expand();
          }
        }
      }
    });
    

    Configure the north region to be collapsible and use the placeholder above as Collapsed-header-replacement:

    ...
    items: [{
      region: 'north',
      html: '<h1 class="x-panel-header">Page Title</h1>',
      autoHeight: true,
      border: false,
      id: 'region-north',
      margins: '0 0 5 0',
      collapsible: true,
      collapsed: true,
      placeholder: placeHolder,
      preventHeader: true,
      listeners: {
        mouseleave: {
          element: 'el',
          fn: function() {
            Ext.getCmp('region-north').collapse();
          }
        }
      }
    },
    ...
    

    This way you can let Ext worry about the layout and keep the collapse functionality.

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

Sidebar

Related Questions

I have issues understanding scopes in javascript.Let's suppose i have the following code: Ext.define('MA.controller.user',{
Lets suppose that I have the following simple query var q = from p
Let's suppose i have the following piece of code: $qb = $this->em->createQueryBuilder(); $qb->add('select', 'a')
Suppose I have following code: def foo(s): A dummy function foo. For example: >>>
Let's suppose I have the following table (let's call it my_table ): CREATE TABLE
Suppose I have some Python code like the following: input = open(input.txt) x =
Lets suppose I have a scenario with the following model: An Animal table which
Lets suppose i have the following array submitted by a html form: array( 'firstname'
I have the following database person_id| field a | field b |friend_id Lets suppose
Let's suppose I have the following code: TEModule teModule = Context.TEModules.Where(module => module.EnumValue.Equals(text.ModuleName)).FirstOrDefault(); if

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.