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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:38:12+00:00 2026-06-15T08:38:12+00:00

TL/DR: Calling window.setActive(false) does not set the window’s active property to false . Full

  • 0

TL/DR:

Calling window.setActive(false) does not set the window’s active property to false.

Full details:

I have the following ExtJS class inheriting from Ext.window.Window:

Ext.define('WD.view.TbWindow', {
    extend : 'Ext.window.Window',
    isTbWindow: true,

    title: 'Set Me!!',
    constrain: true, // constrain window to viewport
    autoShow: false,
    maximizable: true,
    minimizable: true,

    renderTo: 'main_panel-body',

    minimize: function() {
        this.hide();
        this.setActive(false);
        this.animateTarget.handleWinMinimize();
    },

    ...

});

Within function minimize above there’s the call this.setActive(false);

I use Chrome developer tools to debug the code. Before executing the line this.active is true. After the line is executed it still is true. I’m using ExtJS 4.1.

  • 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-15T08:38:14+00:00Added an answer on June 15, 2026 at 8:38 am

    The problem is with the Ext.WindowManager.getActive() method. In fact, in the web desktop example the Sencha guys actually do some not-so-nice coding to get the actual active window. I copied that code, and started supporting windows array in my code, and that fixed my issue.

    I’ve written a (and built extra functionality into) a DesktopMgr widget that inherits from Ext.util.MixedCollection, and acts as a “Desktop Manager”, where “Desktop” implies any ExtJS container that is meant to handle multiple windows, activation, deactivation, navigating to the previous/next, etc.

    You can download and use the DesktopMgr from this gist. Please let me know if you find ways to improve it (or bugs to fix!).

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

Sidebar

Related Questions

I have a Window instance which I show by calling wInstance.ShowDialog() from a button
I have a page in which i m calling another popup by window.open method.
I have the exact same requirement as in Javascript,calling child window function from opener
I have a modal window from which I am calling a lighbox to view
I have tried calling parent.scroll & parent.window.scroll to scroll the browser window from a
In Gecko and WebKit, you can abort the active HTML parser by calling window.stop()
I have a WPF window which I am creating from another window by calling
What's the difference between clicking on: <a href /> vs. calling window.location.href = ...
I'm just creating my own AboutBox and I'm calling it using Window.ShowDialog() How do
I've this calling: $(document).ready(function () { $(#back).DynamicallyCentering({ Alignment: Vertical, Speed: 5 }); $(window).resize(function ()

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.