Results 1 to 2 of 2

Thread: div resize event

  1. #1
    Sencha User mes-x's Avatar
    Join Date
    Mar 2010
    Posts
    27
    Vote Rating
    1
      0  

    Question div resize event

    Hello!

    does anybody know, how to fire a resize event on a html div?
    i tried:

    Ext.get("IdOfMyDiv").on("resize", function(){...})
    ... but it's not working...

    The reason, why i need this is because my homepage is based on standard html with ExtJs support for several things. In this case the content of a div is changing dynamically when resizing the browserwindow, or when pressing a button, or when hiding some information, ....)

    I know the event for browser-resizing but not the event for a div-container resizing....


    thank you for your help and best regards!!

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Individual elements don't fire resize events, only the window does.
    Code:
    Ext.EventManager.on(window, 'resize', function(){
      //...
    });
    ps. You seem to be looking for the FitToParent plugin (see User Extensions forum).

Similar Threads

  1. [Q] combobox resize in div
    By astat in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 18 Mar 2009, 7:22 AM
  2. how to get resize with events to work on div
    By pkellner in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 11 Sep 2008, 9:04 PM
  3. Resize DIV/Table doesn't resize Grid
    By zaratine in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 19 Jul 2007, 12:46 PM
  4. Setting size of a div on resize
    By ThaNerd in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 10 Apr 2007, 6:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •