Jump to content

How to Hide a Panel On Resize?


Aggie85

Recommended Posts

OK ... the following resize event on the owners panel seems to be working other than I have a few sizing issues:

function resize(sender, width, height, oldWidth, oldHeight, eOpts)
{
  var panels = sender.items ? sender.items.items : [];
  
  Ext.each(panels, function (panel) 
  {
    if (panel.getSize().width < 525)
    {
      panel.getLayout().setVertical(true);  
    }
    else
    {
      panel.getLayout().setVertical(false);  
    }
  
    panel.updateLayout();
  });
}

 

Link to comment
Share on other sites

I need to play with it some more today.

ExtJS really needs to come out with a flex grid.  Without one, attempting to write responsive apps when needed is overly complicated.I have spent days on what would have taken less than an hour with a flex grid.

Thanks again for the help.

Link to comment
Share on other sites

  • 2 weeks later...
8 hours ago, Stemon63 said:

Hi Aggie85,
Please, can you share the working example project?
Thanks a lot!

 

Howdy Stemon63,

I am building a new development laptop right now and I will need to put a demo back together again (I am a C++ developer and the minimum Delphi test app I was using I will need to rebuild.

I will try and get it up in the next couple of days.

Thanks,

Aggie85

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...