-
19 Aug 2010 7:07 AM #1
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!!
-
19 Aug 2010 7:15 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Individual elements don't fire resize events, only the window does.
ps. You seem to be looking for the FitToParent plugin (see User Extensions forum).Code:Ext.EventManager.on(window, 'resize', function(){ //... });
Similar Threads
-
[Q] combobox resize in div
By astat in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 18 Mar 2009, 7:22 AM -
how to get resize with events to work on div
By pkellner in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 11 Sep 2008, 9:04 PM -
Resize DIV/Table doesn't resize Grid
By zaratine in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 19 Jul 2007, 12:46 PM -
Setting size of a div on resize
By ThaNerd in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 10 Apr 2007, 6:14 PM


Reply With Quote