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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...