[BUGFIX] Avoid vertical scroller in recycler 49/34649/7
authorChristoph Hofmann <typo3@its-hofmann.de>
Wed, 26 Nov 2014 20:35:12 +0000 (21:35 +0100)
committerFrank Nägler <typo3@naegler.net>
Sun, 30 Nov 2014 20:31:15 +0000 (21:31 +0100)
Correct resizing of the table in recycler and workspaces backend view.

Resolves: #63225
Resolves: #63212
Releases: master
Change-Id: I28b9660b5b4ba8ba085d878d4059eea464b7411e
Reviewed-on: http://review.typo3.org/34649
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/js/extjs/ux/Ext.ux.FitToParent.js [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 822dfd5..8d7d401
@@ -24,13 +24,12 @@ Ext.ux.plugins.FitToParent = Ext.extend(Object, {
 
        fitSizeToParent : function() {
                        // Uses the dimension of the current viewport, but removes the document header
-                       // initial is the height of the TYPO3 Topbar which i 42. If Topbar is not rendered, set the height as default
-               var documentHeaderHeight = 42 || top.TYPO3.Backend.Topbar.getHeight();
+                       // initial is the height of the TYPO3 Topbar which is 45px. If Topbar is not rendered, set the height as default
+               var documentHeaderHeight = 45 || top.TYPO3.Backend.Topbar.getHeight();
                var documentHeader = Ext.get('typo3-docheader');
 
                if (Ext.isObject(documentHeader)) {
-                               // use 5px bottom margin
-                       documentHeaderHeight -= documentHeader.getHeight() + 5;
+                       documentHeaderHeight -= documentHeader.getHeight() + 26;
                }
 
                if (this.heightOffset && Ext.isNumber(this.heightOffset)) {