Hybrid View

  1. #1
    Sencha User mes-x's Avatar
    Join Date
    Mar 2010
    Posts
    27
    Vote Rating
    1
    mes-x is on a distinguished road

      0  

    Question div resize event

    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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar