[BUGFIX] trigger Backend.doLayout() on window resize 94/52994/2
authorJohannes Goslar <jogo@kronberger-spiele.de>
Thu, 1 Jun 2017 12:26:47 +0000 (14:26 +0200)
committerBenjamin Kott <benjamin.kott@outlook.com>
Thu, 1 Jun 2017 13:50:21 +0000 (15:50 +0200)
Resolves: #78464
Releases: master, 8.7
Change-Id: I8d861df1e047213a355d145e05a9131386c7439f
Reviewed-on: https://review.typo3.org/52991
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
(cherry picked from commit 194bdeaae53cbf4301c8743edcb819547c262a91)
Reviewed-on: https://review.typo3.org/52994

typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js

index 9b0d447..adeeda1 100644 (file)
@@ -28,7 +28,7 @@ define(
                TYPO3.Backend = {
                        initialize: function() {
                                TYPO3.Backend.doLayout();
-                               $(document).on('resize', TYPO3.Backend.doLayout);
+                               $(window).on('resize', TYPO3.Backend.doLayout);
                        },
                        /**
                         * This function is triggered whenever a re-layouting of component is needed