12 Feb 2013 7:59 AM #1
Is there a way to listen any DOM change of an Element ?
I have to synchronise the position of a button with a kind of overlay. When position change, the overlay have to move with the button.
is there any way to listen to button move? the move event is not "the solution" because, when i add another button in a toolbar , the first button position is shifted but there is no 'move' event raised.
So i want to try to listen DOM change to be aware of the button position change. is there any way to do that ?
Thanks a lot.
13 Feb 2013 3:07 AM #2
You can add custom event into your button and use them what you want.
For more info read API docs- http://docs.sencha.com/ext-js/3-4/#!...thod-addEventssword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
14 Feb 2013 1:43 AM #3
Thanks for your answer.
But no i can't do that because i want to be notify on every component move. if offset change i want to be informed.
For example, if i collapse a panel , i want to be notified if my component is masked or has moved