GitHub user Savalek reopened a pull request: https://github.com/apache/zeppelin/pull/3113
[ZEPPELIN-3616] fix editor sections auto-collapse # Description This PR change logic of add new event listener on frontend. Now then add new event listener, also added destroy listener. Destroy listener attach to some DOM element and then this element destroyed listener drop event listener. Since the old listeners were not deleted when changing the size of the paragraph / window, an error occurred. Because of this error, updating the text in the paragraph did not happen until the end. ## Info #### PR type: `Bug Fix` | Jira issue: [`ZEPPELIN-3616`](https://issues.apache.org/jira/browse/ZEPPELIN-3616) ## Screenshots ### List of all resize event (after some time of work) <p align="center">before (77 lis.)</p> ![before](https://user-images.githubusercontent.com/30798933/43723409-421e44a0-99a0-11e8-8945-5d52e275ed02.png) <p align="center">after (16 lis.)</p> ![after](https://user-images.githubusercontent.com/30798933/43723425-4ce02a3e-99a0-11e8-96ee-59ac177945d4.png) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no You can merge this pull request into a Git repository by running: $ git pull https://github.com/TinkoffCreditSystems/zeppelin ZEPPELIN-3616 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/3113.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3113 ---- commit a07b59e081fbf1d21cb3795c7e01f67e7b38daa7 Author: Savalek <def113@...> Date: 2018-08-06T13:29:22Z [ZEPPELIN-3616] remove event if dom's element destroy ---- ---